move image creation into a function

This commit is contained in:
Glenn Maynard
2002-12-30 04:03:49 +00:00
parent b97d3f8513
commit 77e647d7a0
2 changed files with 38 additions and 37 deletions
+7 -5
View File
@@ -13,8 +13,9 @@
*/
#include "RageTexture.h"
#include "RageDisplayInternal.h"
struct SDL_Surface;
class RageBitmapTexture : public RageTexture
{
public:
@@ -24,12 +25,13 @@ public:
virtual void Invalidate() { m_uGLTextureID = 0; }
virtual void Reload( RageTextureID name );
protected:
private:
void Create(); // called by constructor and Reload
virtual unsigned int GetGLTextureID() { return m_uGLTextureID; }
unsigned int GetGLTextureID() { return m_uGLTextureID; }
unsigned int m_uGLTextureID;
SDL_Surface *CreateImg();
GLenum fmtTexture;
};
#endif