The Snivy Video Game Is Complete
This commit is contained in:
@@ -20,9 +20,13 @@ namespace game
|
||||
|
||||
static constexpr GLuint TEXTURE_INDICES[] = {0, 1, 2, 2, 3, 0};
|
||||
|
||||
static constexpr float RECT_VERTICES[] = {0.0f, 0.0f, 1.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f};
|
||||
|
||||
static GLuint textureVAO;
|
||||
static GLuint textureVBO;
|
||||
static GLuint textureEBO;
|
||||
static GLuint rectVAO;
|
||||
static GLuint rectVBO;
|
||||
static bool isStaticInit;
|
||||
|
||||
public:
|
||||
@@ -42,6 +46,7 @@ namespace game
|
||||
glm::mat4 projection_get() const;
|
||||
void texture_render(resource::Shader&, GLuint, glm::mat4&, glm::vec4 = glm::vec4(1.0f), glm::vec3 = {},
|
||||
float* = (float*)TEXTURE_VERTICES) const;
|
||||
void rect_render(resource::Shader&, glm::mat4&, glm::vec4 = glm::vec4(0, 0, 1, 1)) const;
|
||||
void render(resource::Shader&, glm::mat4&, glm::vec4 = glm::vec4(1.0f), glm::vec3 = {}) const;
|
||||
void bind() const;
|
||||
void unbind() const;
|
||||
|
||||
Reference in New Issue
Block a user