Subversion Repositories sssnakesss

Rev

Rev 4 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef TEXTURE_HPP
#define TEXTURE_HPP

class Texture
{
    public:
        Texture(string filename);
        ~Texture();
       
        void draw(int x, int y);
       
    private:
        GLuint texture;
        bool loaded;
   
        int width;
        int height;
        int halfWidth;
        int halfHeight;
};

void drawTexture(Texture *texture, int x, int y);

#endif // TEXTURE_HPP