Etterna
0.74.4
Loading...
Searching...
No Matches
src
RageUtil
Graphics
RageBitmapTexture.h
1
/* RageBitmapTexture - Loads a static texture. */
2
3
#ifndef RAGEBITMAPTEXTURE_H
4
#define RAGEBITMAPTEXTURE_H
5
6
#include "RageTexture.h"
7
8
class
RageBitmapTexture
:
public
RageTexture
9
{
10
public
:
11
RageBitmapTexture
(
const
RageTextureID
& name);
12
~RageBitmapTexture
()
override
;
13
/* only called by RageTextureManager::InvalidateTextures */
14
void
Invalidate()
override
{ m_uTexHandle = 0;
/* don't Destroy() */
}
15
void
Reload()
override
;
16
intptr_t GetTexHandle()
const override
17
{
18
return
m_uTexHandle;
19
};
// accessed by RageDisplay
20
21
private
:
22
void
Create();
// called by constructor and Reload
23
void
Destroy();
24
intptr_t m_uTexHandle;
// treat as unsigned in OpenGL, ID3D8Texture* for D3D
25
};
26
27
#endif
RageBitmapTexture
Definition
RageBitmapTexture.h:9
RageTexture
Definition
RageTexture.h:14
RageTextureID
Definition
RageTextureID.h:12
Generated by
1.9.8