Source/Gorgon/Geometry.h

Tue, 22 Dec 2020 21:45:51 +0200

author
cemkalyoncu
date
Tue, 22 Dec 2020 21:45:51 +0200
branch
4.x-dev
changeset 1525
ab43d641c7c4
child 1530
23a67943a4ee
permissions
-rw-r--r--

* Geometry reflection
* A small fix in compile script for windows

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

mercurial