Sprite uses unique vao for rendering
Remove notation of "m" in member variables.
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Dengine
|
||||
class Shader
|
||||
{
|
||||
public:
|
||||
GLuint mProgram;
|
||||
GLuint program;
|
||||
|
||||
Shader();
|
||||
~Shader();
|
||||
|
||||
@@ -15,12 +15,12 @@ public:
|
||||
|
||||
b32 loadSprite(Texture *tex, glm::vec2 pos);
|
||||
|
||||
void initVertexArrayObject(GLuint vao);
|
||||
void render(Shader *shader, GLuint shaderVao);
|
||||
void render(Shader *shader);
|
||||
private:
|
||||
glm::vec2 mPos;
|
||||
Texture *mTex;
|
||||
GLuint mVbo;
|
||||
glm::vec2 pos;
|
||||
Texture *tex;
|
||||
GLuint vbo;
|
||||
GLuint vao;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user