Difference between revisions of "Image (RW Section)"

From GTAMods Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
| MODULEID = 000000
 
| MODULEID = 000000
 
| IDENTIFIER = 18
 
| IDENTIFIER = 18
 +
| CHILDREN = [[Struct (RW Section)|Struct]]
 
}}
 
}}
  
Line 11: Line 12:
  
 
==Structure==
 
==Structure==
 +
 +
Int32 - Width
 +
Int32 - Height
 +
Int32 - Number of mipmaps
 +
 
<source lang="c">
 
<source lang="c">
 
struct rwImage {
 
struct rwImage {

Revision as of 07:56, 24 October 2023

Image
RenderWare Stream Section
Vendor Criterion Games
Module Core
Module ID 0x000000
Identifier 0x18
Chunk ID 0x00000018
Versions All
Hierarchy
Parents:
None
Children:
Struct
Extensions:
None
File Format

An Image is a section containing image sampler data stored for an individual texture.

Structure

Int32 - Width
Int32 - Height
Int32 - Number of mipmaps
struct rwImage {
    RwRGBA pixelRGBA[numPixels] (RwRGBA: uint8 r, g, b, a);
    int32 stringLength;
    string textureName;
};

See Also