19 m_materialName =
NULL;
42 LegoU32 textureLength, materialLength;
62 if ((result = p_storage->
Read(&textureLength,
sizeof(textureLength))) !=
SUCCESS) {
76 if ((result = p_storage->
Read(&materialLength,
sizeof(materialLength))) !=
SUCCESS) {
LegoResult Read(LegoStorage *p_storage)
Read the color from a storage object in the order red, green, blue (each as a byte).
[AI] Represents the rendering attributes and state of a LEGO mesh, including color,...
LegoFloat m_alpha
[AI] Mesh transparency (0=transparent, 1=opaque).
LegoResult Read(LegoStorage *p_storage)
[AI] Reads mesh properties (color, alpha, shading, flags, names) from the given storage stream.
LegoChar * m_materialName
[AI] Name of material resource, null if none; string is lowercase.
LegoBool m_unk0x21
[AI] Unknown boolean property; function unknown.
LegoChar * m_textureName
[AI] Name of texture resource, null if none; string is lowercase.
LegoMeshUnkComponent * m_unk0x10
[AI] Unknown pointer; owned; deleted in destructor. [AI]
undefined m_unk0x20
[AI] Single unused/padding byte.
LegoColor m_color
[AI] The main (diffuse) color of the mesh.
LegoU8 m_shading
[AI] Shading mode (see enum above).
LegoU8 m_unk0x0d
[AI] Unknown property/flag at offset 0x0d.
Abstract base class providing an interface for file-like storage with binary and text read/write oper...
virtual LegoResult Read(void *p_buffer, LegoU32 p_size)=0
Read bytes from storage into buffer.
#define DECOMP_SIZE_ASSERT(T, S)
#define NULL
[AI] Null pointer value (C/C++ semantics).
unsigned long LegoU32
[AI] Unsigned 32-bit integer type for cross-platform compatibility.
char LegoChar
[AI] Alias for char, for use in character/byte data and string handling.
LegoS32 LegoResult
[AI] Function result type (return code): typically SUCCESS (0) or FAILURE (-1).
#define SUCCESS
[AI] Used to indicate a successful operation in result codes.
[AI] Unknown mesh sub-component structure possibly used for materials or textures.