LEGO color representation with 8-bit RGB channels.
[AI] Represents the rendering attributes and state of a LEGO mesh, including color,...
LegoFloat m_alpha
[AI] Mesh transparency (0=transparent, 1=opaque).
LegoFloat GetAlpha()
[AI] Gets the mesh's transparency alpha value.
@ e_flat
[AI] Use flat shading (per-polygon color).
@ e_wireframe
[AI] Use wireframe rendering.
@ e_gouraud
[AI] Use gouraud shading (interpolated vertex colors).
LegoResult Read(LegoStorage *p_storage)
[AI] Reads mesh properties (color, alpha, shading, flags, names) from the given storage stream.
LegoU8 GetUnknown0x0d()
[AI] Returns the value of an unknown flag or property at offset 0x0d.
LegoColor GetColor()
[AI] Returns the mesh's primary color.
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.
LegoU8 GetShading()
[AI] Gets the shading mode of the mesh.
undefined4 m_unk0x14
[AI] Unknown 4-byte field; unused. [AI]
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.
void SetShading(LegoU8 p_shading)
[AI] Sets the shading mode.
void SetColor(LegoColor p_color)
[AI] Sets the mesh's primary color.
LegoBool GetUnknown0x21()
[AI] Returns the value of an unknown boolean at offset 0x21.
const LegoChar * GetTextureName()
[AI] Returns the texture resource name associated with the mesh.
const LegoChar * GetMaterialName()
[AI] Returns the material resource name for the mesh.
Abstract base class providing an interface for file-like storage with binary and text read/write oper...
[AI] Defines basic fixed-width data types and platform-neutral constants for LEGO Island codebase.
char LegoChar
[AI] Alias for char, for use in character/byte data and string handling.
unsigned char LegoU8
[AI] Unsigned 8-bit integer type used throughout LEGO Island.
LegoS32 LegoResult
[AI] Function result type (return code): typically SUCCESS (0) or FAILURE (-1).
float LegoFloat
[AI] Floating point type used throughout LEGO Island.
LegoU8 LegoBool
[AI] Boolean value used throughout the codebase.
[AI] Unknown mesh sub-component structure possibly used for materials or textures.
undefined m_unk0x00[8]
[AI] Padding/unknown bytes, function unknown. [AI]
undefined * m_unk0x08
[AI] Unknown dynamically allocated pointer, deleted in destructor. [AI]
undefined * m_unk0x0c
[AI] Unknown dynamically allocated pointer, deleted in destructor. [AI]
undefined * m_unk0x18
[AI] Unknown dynamically allocated pointer, deleted in destructor. [AI]
undefined * m_unk0x14
[AI] Unknown dynamically allocated pointer, deleted in destructor. [AI]
undefined * m_unk0x10
[AI] Unknown dynamically allocated pointer, deleted in destructor. [AI]