Source/Gorgon/Geometry.h

Tue, 06 Jul 2021 10:22:49 +0300

author
cemkalyoncu
date
Tue, 06 Jul 2021 10:22:49 +0300
branch
4.x-dev
changeset 1701
b168349a931d
parent 1589
13038a91c0f4
child 1722
ac75a1494fa5
permissions
-rw-r--r--

* Image/Bitmap rotate

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

mercurial