Files
itgmania212121/stepmania/src/RageBitmapTexture.h
T

35 lines
940 B
C++

#ifndef RAGEBITMAPTEXTURE_H
#define RAGEBITMAPTEXTURE_H
/*
-----------------------------------------------------------------------------
Class: RageBitmapTexture
Desc: Holder for a static texture with metadata. Can load just about any image format.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "RageTexture.h"
class RageBitmapTexture : public RageTexture
{
public:
RageBitmapTexture( CString sFilePath, RageTexturePrefs prefs );
virtual ~RageBitmapTexture();
/* only called by RageTextureManager::InvalidateTextures */
virtual void Invalidate() { m_uGLTextureID = 0; }
virtual void Reload( RageTexturePrefs prefs );
protected:
void Create(); // called by constructor and Reload
virtual unsigned int GetGLTextureID() { return m_uGLTextureID; }
unsigned int m_uGLTextureID;
};
#endif