Source/Gorgon/Geometry.h

Sat, 18 Jun 2022 03:28:53 +0200

author
lucatonini
date
Sat, 18 Jun 2022 03:28:53 +0200
branch
4.x-dev
changeset 1766
ff04475158dc
parent 1722
ac75a1494fa5
permissions
-rw-r--r--

* Update install instructions for Fedora 36

#pragma once

#include "Scripting/Reflection.h"

namespace Gorgon { namespace Geometry {

    extern Scripting::Library LibGeometry;
    
    namespace Types {
#define DEFTYPE(name) \
        inline const Scripting::Type &name() { \
            static const Scripting::Type *type = LibGeometry.GetType(#name); \
            return *type; \
        }

        DEFTYPE(Point)
        DEFTYPE(Pointf)
        DEFTYPE(Size)
        DEFTYPE(Sizef)
        DEFTYPE(Bounds)
        DEFTYPE(Boundsf)
        DEFTYPE(Margin)
        DEFTYPE(Marginf)
        
#undef DEFTYPE
    }
    
    void InitializeScripting();
    
} }

mercurial