/include/sssnakesss.hpp |
---|
1,5 → 1,5 |
#ifndef SSSNAKESSS_H |
#define SSSNAKESSS_H |
#ifndef SSSNAKESSS_HPP |
#define SSSNAKESSS_HPP |
struct SDL_Surface; |
27,4 → 27,4 |
SDL_Surface *screen; |
}; |
#endif // SSSNAKESSS_H |
#endif // SSSNAKESSS_HPP |
/include/texture.hpp |
---|
0,0 → 1,22 |
#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; |
}; |
#endif // TEXTURE_HPP |