diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-04-02 09:19:32 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-04-02 09:19:32 +0100 |
commit | aa67c8bb56cb750ac83ecbd361439f5ecb5e12d9 (patch) | |
tree | f1517a86654cf5457fa0b3aa6cfaea4bfa4eef36 /include/YAGE/sprite.hpp | |
parent | 21a147c3c1c2fad2819fe76becab320c51eb131f (diff) | |
download | YAGE-aa67c8bb56cb750ac83ecbd361439f5ecb5e12d9.tar.gz YAGE-aa67c8bb56cb750ac83ecbd361439f5ecb5e12d9.zip |
Renamed includes
Diffstat (limited to 'include/YAGE/sprite.hpp')
-rw-r--r-- | include/YAGE/sprite.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/YAGE/sprite.hpp b/include/YAGE/sprite.hpp new file mode 100644 index 00000000..9f765c7d --- /dev/null +++ b/include/YAGE/sprite.hpp @@ -0,0 +1,27 @@ +#ifndef SPRITE_HPP +#define SPRITE_HPP + +#include "gl_texture.hpp" + +#include <GL/glew.h> + +#include <string> + +class Sprite +{ +private: + float x_; + float y_; + float width_; + float height_; + GLuint vbo_id_ = 0; + GlTexture texture_; +public: + Sprite(); + ~Sprite(); + + void init(float x, float y, float width, float height, const std::string &texture_path); + void draw(); +}; + +#endif |