[AI] Simple wrapper for D3DRMIMAGE; manages pixel buffer and palette for Direct3DRM textures [AI]
More...
#include <impl.h>
|
| TglD3DRMIMAGE (int width, int height, int depth, void *pBuffer, int useBuffer, int paletteSize, PaletteEntry *pEntries) |
| Constructs an image buffer for use with Direct3DRM textures [AI]. More...
|
|
| ~TglD3DRMIMAGE () |
| [AI] Destroys and frees buffer/palette if needed [AI] More...
|
|
Result | CreateBuffer (int width, int height, int depth, void *pBuffer, int useBuffer) |
| Creates or reallocates image buffer as necessary [AI]. More...
|
|
void | Destroy () |
| Destroys any buffers/palette managed by the image [AI]. More...
|
|
Result | FillRowsOfTexture (int y, int height, char *content) |
| Writes pixel rows into texture [AI]. More...
|
|
Result | InitializePalette (int paletteSize, PaletteEntry *pEntries) |
| Initializes palette for image [AI]. More...
|
|
[AI] Simple wrapper for D3DRMIMAGE; manages pixel buffer and palette for Direct3DRM textures [AI]
Definition at line 1207 of file impl.h.
◆ TglD3DRMIMAGE()
TglD3DRMIMAGE::TglD3DRMIMAGE |
( |
int |
width, |
|
|
int |
height, |
|
|
int |
depth, |
|
|
void * |
pBuffer, |
|
|
int |
useBuffer, |
|
|
int |
paletteSize, |
|
|
PaletteEntry * |
pEntries |
|
) |
| |
Constructs an image buffer for use with Direct3DRM textures [AI].
- Parameters
-
width | Image width [AI] |
height | Image height [AI] |
depth | Bits per pixel [AI] |
pBuffer | Pixel buffer pointer [AI] |
useBuffer | Whether to use provided buffer (1) or allocate [AI] |
paletteSize | Palette entries [AI] |
pEntries | Palette data [AI] |
Definition at line 46 of file texture.cpp.
◆ ~TglD3DRMIMAGE()
TglImpl::TglD3DRMIMAGE::~TglD3DRMIMAGE |
( |
| ) |
|
|
inline |
[AI] Destroys and frees buffer/palette if needed [AI]
Definition at line 1228 of file impl.h.
◆ CreateBuffer()
Result TglD3DRMIMAGE::CreateBuffer |
( |
int |
width, |
|
|
int |
height, |
|
|
int |
depth, |
|
|
void * |
pBuffer, |
|
|
int |
useBuffer |
|
) |
| |
Creates or reallocates image buffer as necessary [AI].
- Parameters
-
width | Width [AI] |
height | Height [AI] |
depth | Depth [AI] |
pBuffer | Buffer data [AI] |
useBuffer | Client or local allocation [AI] |
Definition at line 102 of file texture.cpp.
◆ Destroy()
void TglD3DRMIMAGE::Destroy |
( |
| ) |
|
Destroys any buffers/palette managed by the image [AI].
Definition at line 81 of file texture.cpp.
◆ FillRowsOfTexture()
Result TglD3DRMIMAGE::FillRowsOfTexture |
( |
int |
y, |
|
|
int |
height, |
|
|
char * |
content |
|
) |
| |
Writes pixel rows into texture [AI].
- Parameters
-
y | Row to start [AI] |
height | Number of rows to fill [AI] |
content | Pixel data [AI] |
Definition at line 132 of file texture.cpp.
◆ InitializePalette()
Initializes palette for image [AI].
- Parameters
-
paletteSize | Number of entries [AI] |
pEntries | Palette data [AI] |
Definition at line 140 of file texture.cpp.
◆ m_image
[AI] Underlying D3DRM image struct [AI]
Definition at line 1260 of file impl.h.
◆ m_texelsAllocatedByClient
int TglImpl::TglD3DRMIMAGE::m_texelsAllocatedByClient |
[AI] Flag for texel memory ownership (by client) [AI]
Definition at line 1261 of file impl.h.
The documentation for this class was generated from the following files: