Sprite uses unique vao for rendering

Remove notation of "m" in member variables.
This commit is contained in:
2016-06-08 01:35:00 +10:00
parent 761609e1f9
commit 6f7f9fa50a
6 changed files with 41 additions and 47 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ namespace Dengine
class Shader
{
public:
GLuint mProgram;
GLuint program;
Shader();
~Shader();
+5 -5
View File
@@ -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;
};
}