This commit is contained in:
2021-07-09 03:22:51 +02:00
parent e4c6a45427
commit 4f30f2ce3a
30 changed files with 565 additions and 314 deletions

View File

@@ -16,15 +16,15 @@ class Object
public:
GLfloat vertices[16];
glm::vec2 Position, Size;
float Rotation = 0.0f;
glm::vec2 position, size;
float rotation = 0.0f;
int blockType;
Texture Sprite;
Texture sprite;
c2AABB objectBody;
GLuint quadVAO, VBO, EBO;
glm::vec4 spriteUVs;
tileSet* spriteSheet = new tileSet(Sprite, glm::vec2(10, 10));
tileSet* spriteSheet = new tileSet(sprite, glm::ivec2(10, 10));
Object(Texture sprite, glm::vec2 pos, glm::vec2 size, int blockType = 2);
~Object();