This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
game/include/Components/World/Cube.hpp
2021-04-24 13:37:57 +03:00

34 lines
No EOL
808 B
C++

#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 <Components/Data/Vector3.cpp>
#include <Components/TopLevel/GameObject.cpp>
#include <cassert>
#include <cmath>
#include <cstring>
#include <iostream>
struct Cube : public GameObject {
Game() : GameObject("Cube") {}
Vector3 position;
Vector3 size;
};
void registerCube(lua_State* L) {
luabridge::getGlobalNamespace(L)
.beginNamespace("Core")
.deriveClass <Cube, GameObject> ("Cube")
.addProperty ("position", &Cube::position)
.addProperty ("size", &Cube::size)
.endClass()
.endNamespace();
}
#endif