Main Page Modules Alphabetical List Data Structures Data Fields
Compressed Textures
[D3D9]
RenderWare Graphics supports compressed textures via the RwD3D9DDSTextureRead function. This function will load .dds files that contain compressed and uncompressed formats.
Compressed textures formats must be a power of 2. A texture does not have to be square but both x and y must be powers of 2.
Calling the function RwRasterLock on a raster that was created via RwD3D9DDSTextureRead, where the texture format in the .dds file was DXT1-5, will provide a pixel pointer to the compressed texture data. RenderWare Graphics will not decompress the texture.
- Note:
-
Calling RwImageSetFromRaster or RwRasterSetFromImage on a raster that contains a compressed texture will result in undefined results and should be treated as an error.
- See also:
-
Raster Types , Raster Functions , RwRasterLock , RwD3D9DDSTextureRead , Cube Textures
© 1993-2004 Criterion Software Limited. All rights reserved. Built Thu Feb 12 13:46:57 2004.
Send Feedback