RenderWare::Raster struct

A structure that contains information for a texture.

For more information, check the official Direct3D 9 documentation:

Public types

enum (anonymous): uint16_t { kTypeDepthStencilSurface = 2, kTypeTexture = 8, kTypeRenderTarget = 9, kTypeDepthStencilTexture = 10, kFlagDynamicUsage = 0x10, kFlagAutoGenMipap = 0x200, kFlagCubeTexture = 0x1000, kFlagVolumeTexture = 0x2000 }

Public static variables

static const uint32_t TYPE

Public static functions

static auto CreateRaster(Raster*& pDst, uint16_t width, uint16_t height, uint8_t levels, int flagsDepth, D3DFORMAT format) -> Raster*

Constructors, destructors, conversion operators

Raster()
~Raster()

Public functions

void Delete()
void Create()
Creates the corresponding Direct3D object for this raster, depending on the format and flags.
auto CreateTexture(DWORD usage = NULL, D3DPOOL pool = D3DPOOL_DEFAULT) -> HRESULT
void D3D9AddToUnmanagedList()

Public variables

D3DFORMAT format
uint16_t flags
uint16_t volumeDepth
IDirect3DSurface9* pSurface
IDirect3DTexture9* pTexture
IDirect3DCubeTexture9* pCubeTexture
IDirect3DVolumeTexture9* pVolumeTexture
union RenderWare::Raster::@45 @46
uint16_t width
uint16_t height
uint8_t depth
uint8_t levels
uint16_t cubeFaces
Raster* pNextParent
void* pSwapChain
void* pTextureData