aboutsummaryrefslogtreecommitdiffstats
path: root/zedengine/include/sprite.hpp
blob: 9f765c7dcff079b382ff99503411861cf32de216 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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