Subversion Repositories sssnakesss

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 tom 1
#ifndef TEXTURE_HPP
2
#define TEXTURE_HPP
3
 
4
class Texture
5
{
6
    public:
7
        Texture(string filename);
8
        ~Texture();
9
 
10
        void draw(int x, int y);
11
 
12
    private:
13
        GLuint texture;
14
        bool loaded;
15
 
16
        int width;
17
        int height;
18
        int halfWidth;
19
        int halfHeight;
20
};
21
 
22
#endif // TEXTURE_HPP