#ifndef _CUBE_H #define _CUBE_H #define DIGRAPHENE_GRAPHICS_BUFFER_IMPLEMENTATION #define DIGRAPHENE_GRAPHICS_CAMERA_IMPLEMENTATION #define DIGRAPHENE_GRAPHICS_MESH_IMPLEMENTATION #define DIGRAPHENE_GRAPHICS_SHADER_IMPLEMENTATION #include #include #include #include #include #include struct Cube : public GameObject { Game() : GameObject("Cube") {} Vector3 position; Vector3 size; }; void registerCube(lua_State* L) { luabridge::getGlobalNamespace(L) .beginNamespace("Core") .deriveClass ("Cube") .addProperty ("position", &Cube::position) .addProperty ("size", &Cube::size) .endClass() .endNamespace(); } #endif