make GetTexHandle() const

This commit is contained in:
Glenn Maynard
2003-06-22 01:28:23 +00:00
parent 2d97a1daa0
commit a845a86040
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ BannerCache::~BannerCache()
struct BannerTexture: public RageTexture
{
unsigned m_uTexHandle;
unsigned GetTexHandle() { return m_uTexHandle; }; // accessed by RageDisplay
unsigned GetTexHandle() const { return m_uTexHandle; }; // accessed by RageDisplay
/* This is a reference to a pointer in m_BannerPathToImage. */
SDL_Surface *&img;
int width, height;
+1 -1
View File
@@ -23,7 +23,7 @@ public:
/* only called by RageTextureManager::InvalidateTextures */
virtual void Invalidate() { m_uTexHandle = 0; /* don't Destroy() */}
virtual void Reload();
virtual unsigned GetTexHandle() { return m_uTexHandle; }; // accessed by RageDisplay
virtual unsigned GetTexHandle() const { return m_uTexHandle; }; // accessed by RageDisplay
private:
void Create(); // called by constructor and Reload
+1 -1
View File
@@ -51,7 +51,7 @@ public:
virtual void Update( float fDeltaTime ) {}
virtual void Reload() {}
virtual void Invalidate() { } /* only called by RageTextureManager::InvalidateTextures */
virtual unsigned GetTexHandle() = 0; // accessed by RageDisplay
virtual unsigned GetTexHandle() const = 0; // accessed by RageDisplay
// movie texture/animated texture stuff
virtual void Play() {}