struct
RasterLow-level representation of a game texture.
Its high-level equivalent is Graphics::
Public types
-
enum Flags: uint16_
t { kTypeDepthStencilSurface = 2, kTypeTexture = 8, kTypeRenderTarget = 9, kTypeDepthStencilTexture = 10, kFlagDynamicUsage = 0x10, kFlagAutoGenMipap = 0x200, kFlagCubeTexture = 0x1000, kFlagVolumeTexture = 0x2000 }
Public static variables
Public static functions
Constructors, destructors, conversion operators
Public functions
- auto Delete() -> void
- auto Create() -> void
- Creates the corresponding Direct3D object for this raster, depending on the format and flags.
-
auto CreateTexture(DWORD usage = NULL,
D3DPOOL pool = D3DPOOL_
DEFAULT) -> HRESULT - auto D3D9AddToUnmanagedList() -> void
- auto D3D9GetStreamedMipLevelSize(int mipLevel = 0) -> int
- Returns how many bytes are needed to store one raw mip level of the raster.
- auto CopyRaster(Raster* other) -> bool
-
auto Fill(int8_
t* data, int mipLevel = 0) -> bool - Sets the raw contents of a mip level of the raster.
-
auto Extract(int8_
t* dstData, int mipLevel = 0) -> bool - Extracts the raw contents of a mip level of the raster, and saves it in a byte array.
- auto UNNAMED(RasterDirect3dData) -> union
Public variables
Function documentation
int RenderWare:: Raster:: D3D9GetStreamedMipLevelSize(int mipLevel = 0)
Returns how many bytes are needed to store one raw mip level of the raster.
Parameters | |
---|---|
mipLevel |
bool RenderWare:: Raster:: Extract(int8_ t* dstData,
int mipLevel = 0)
Extracts the raw contents of a mip level of the raster, and saves it in a byte array.
Parameters | |
---|---|
dstData out | |
mipLevel |
The byte array must be of size returned by D3D9GetStreamedMipLevelSize()