Source/Gorgon/Geometry.h

Sun, 27 Dec 2020 08:00:18 +0200

author
cemkalyoncu
date
Sun, 27 Dec 2020 08:00:18 +0200
branch
4.x-dev
changeset 1530
23a67943a4ee
parent 1525
ab43d641c7c4
child 1589
13038a91c0f4
permissions
-rw-r--r--

* Placeholder scripting types for some geometry classes

#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)
        
#undef DEFTYPE
    }
    
    void InitializeScripting();
    
} }

mercurial