This commit is contained in:
2015-02-13 20:00:39 +01:00
parent 523c4adb21
commit bdc2ef58f4
5 changed files with 109 additions and 62 deletions

View File

@@ -74,12 +74,17 @@ public:
~Texture2D();
void bind() const;
void copyFromSurface(SDL_Surface *src);
SDL_Surface* copyToSurface();
private:
void _glCreate(unsigned width, unsigned height, bool alpha = false);
gl::GLuint _texID;
gl::GLuint texID_;
unsigned width_, height_;
bool alpha_;
};