WIP
This commit is contained in:
@@ -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_;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user