Isle
Loading...
Searching...
No Matches
TglImpl::TglD3DRMIMAGE Class Reference

[AI] Simple wrapper for D3DRMIMAGE; manages pixel buffer and palette for Direct3DRM textures [AI] More...

#include <impl.h>

Collaboration diagram for TglImpl::TglD3DRMIMAGE:

Public Member Functions

 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...
 

Public Attributes

D3DRMIMAGE m_image
 [AI] Underlying D3DRM image struct [AI] More...
 
int m_texelsAllocatedByClient
 [AI] Flag for texel memory ownership (by client) [AI] More...
 

Detailed Description

[AI] Simple wrapper for D3DRMIMAGE; manages pixel buffer and palette for Direct3DRM textures [AI]

Definition at line 1207 of file impl.h.

Constructor & Destructor Documentation

◆ 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
widthImage width [AI]
heightImage height [AI]
depthBits per pixel [AI]
pBufferPixel buffer pointer [AI]
useBufferWhether to use provided buffer (1) or allocate [AI]
paletteSizePalette entries [AI]
pEntriesPalette 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.

Member Function Documentation

◆ CreateBuffer()

Result TglD3DRMIMAGE::CreateBuffer ( int  width,
int  height,
int  depth,
void *  pBuffer,
int  useBuffer 
)

Creates or reallocates image buffer as necessary [AI].

Parameters
widthWidth [AI]
heightHeight [AI]
depthDepth [AI]
pBufferBuffer data [AI]
useBufferClient 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
yRow to start [AI]
heightNumber of rows to fill [AI]
contentPixel data [AI]

Definition at line 132 of file texture.cpp.

◆ InitializePalette()

Result TglD3DRMIMAGE::InitializePalette ( int  paletteSize,
PaletteEntry pEntries 
)

Initializes palette for image [AI].

Parameters
paletteSizeNumber of entries [AI]
pEntriesPalette data [AI]

Definition at line 140 of file texture.cpp.

Member Data Documentation

◆ m_image

D3DRMIMAGE TglImpl::TglD3DRMIMAGE::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: