Common Data Types: Difference between revisions
Content added Content deleted
(→CGtV3d) |
(Remove RenderWare section (moved to RenderWare Data Types page).) |
||
Line 108: | Line 108: | ||
A data type used in many Criterion games as an identifier for objects. It is an alias of the type <code>uint64_t</code> and is used to store a compressed ASCII string. |
A data type used in many Criterion games as an identifier for objects. It is an alias of the type <code>uint64_t</code> and is used to store a compressed ASCII string. |
||
For example, the string <code>BURNOUT</code> would be represented by the GtID <code>6226094955724800000</code>. |
For example, the string <code>BURNOUT</code> would be represented by the GtID <code>6226094955724800000</code>. |
||
= RenderWare = |
|||
{{todo|Move this section to its own page eventually, as these types originate from the RenderWare engine itself as opposed to any external codebases.}} |
|||
=== RwV3d === |
|||
A structure comprised of three floats, mainly used to represent the location of a point in 3D space. |
|||
{| class="wikitable" |
|||
! Offset !! Length !! Type !! Name !! Description !! Comments |
|||
|- |
|||
| 0x0 || 0x4 || RwReal || x || X value || |
|||
|- |
|||
| 0x4 || 0x4 || RwReal || y || Y value || |
|||
|- |
|||
| 0x8 || 0x4 || RwReal || z || Z value || |
|||
|} |
|||
=== RwBBox === |
|||
A structure defining the [https://en.wikipedia.org/wiki/Infimum_and_supremum supremum and infimum] vertices of a bounding box. |
|||
{| class="wikitable" |
|||
! Offset !! Length !! Type !! Name !! Description !! Comments |
|||
|- |
|||
| 0x0 || 0xC || [[#RwV3d|RwV3d]] || sup || Supremum vertex || |
|||
|- |
|||
| 0xC || 0xC || [[#RwV3d|RwV3d]] || inf || Infimum vertex || |
|||
|} |
|||
=== RwPlane === |
|||
{| class="wikitable" |
|||
! Offset !! Length !! Type !! Name !! Description !! Comments |
|||
|- |
|||
| 0x0 || 0xC || [[#RwV3d|RwV3d]] || normal || || |
|||
|- |
|||
| 0xC || 0x4 || RwReal || distance || || |
|||
|} |
|||
=== RwRGBA === |
|||
{| class="wikitable" |
|||
! Offset !! Length !! Type !! Name !! Description !! Comments |
|||
|- |
|||
| 0x0 || 0x1 || RwUInt8 || red || || |
|||
|- |
|||
| 0x1 || 0x1 || RwUInt8 || green || || |
|||
|- |
|||
| 0x2 || 0x1 || RwUInt8 || blue || || |
|||
|- |
|||
| 0x3 || 0x1 || RwUInt8 || alpha || || |
|||
|} |