Add sprite functionality, doesn't render yet

This commit is contained in:
2016-06-07 23:54:14 +10:00
parent 864dca6f3d
commit 761609e1f9
7 changed files with 155 additions and 4 deletions
+27
View File
@@ -0,0 +1,27 @@
#ifndef DENGINE_SPRITE_H
#define DENGINE_SPRITE_H
#include <Dengine\Common.h>
#include <Dengine\Texture.h>
#include <Dengine\Shader.h>
#include <GLM\glm.hpp>
namespace Dengine {
class Sprite
{
public:
Sprite();
~Sprite();
b32 loadSprite(Texture *tex, glm::vec2 pos);
void initVertexArrayObject(GLuint vao);
void render(Shader *shader, GLuint shaderVao);
private:
glm::vec2 mPos;
Texture *mTex;
GLuint mVbo;
};
}
#endif