Common Data Types: Difference between revisions
Stuff
(Added CGtSphere.) |
(Stuff) |
||
Line 3:
Data types used commonly by the pre-Paradise Burnout games.
=
=== CGtV3d ===
A structure
Often used to represent a point in 3D space.
{| class="wikitable"
! Offset !! Length !! Type
|-
| 0x0 || 0x4 || RwReal || X component
|-▼
| 0x4 || 0x4 || RwReal || Y component
|-▼
| 0x8 || 0x4 || RwReal || Z component
|}
=== CGtV3dPlus ===
Very similar to the CGtV3d type, but includes an additional "plus" component. This extra component may be used to represent a different, but related quantity e.g. length.
{| class="wikitable"
! Offset !! Length !! Type
| 0x0 || 0x4 || RwReal || X component
|-
| 0x4 || 0x4 || RwReal || Y component
|-
| 0x8 || 0x4 || RwReal || Z component
|-
| 0xC || 0x4 || RwReal || Plus component
|}
= Geometric =
=== CGtPlane ===
A structure
{| class="wikitable"
! Offset !! Length !! Type
|-
| 0x0 || 0x10 ||
|-
| 0x0 || 0x10 || RwReal || Length
|}
=== CGtSphere ===
A structure representing a sphere in 3D space, with a position and radius.
{| class="wikitable"
! Offset !! Length !! Type
|-
| 0x0 || 0x10 ||
▲|}
=== CGtAxisAlignedBox ===▼
|-
| 0x0 || 0x10 ||
▲|-
| 0x10 || 0x10 || [[#CGtV3d|CGtV3d]] || mInf || Infimum vertex || ▼
|}
=== CGtLine ===
A structure comprised of two vectors
{| class="wikitable"
! Offset !! Length !! Type !! Name
|-
| 0x0 || 0x10 || [[#CGtV3d|CGtV3d]] || mStartPoint
|-
| 0x10 || 0x10 || [[#CGtV3d|CGtV3d]] || mEndPoint
|}
=== CGtMatrix3x4 ===
A structure comprised of four 3D vectors. Equivalent to <code>RwMatrix</code>.
{| class="wikitable"
! Offset !! Length !! Type !! Name
|-
| 0x0 || 0x10 || [[#CGtV3d|CGtV3d]] || mRight
|-
| 0x10 || 0x10 || [[#CGtV3d|CGtV3d]] || mUp
|-
| 0x20 || 0x10 || [[#CGtV3d|CGtV3d]] || mAt
|-
| 0x30 || 0x10 || [[#CGtV3d|CGtV3d]] || mPos
|}
▲=== CGtAxisAlignedBox ===
Equivalent to <code>RwBBox</code>.
{| class="wikitable"
! Offset !! Length !! Type !! Name !! Description
|-
|-
|
|}
===
{| class="wikitable"
!
|-
| 0x0 || 0x40 || [[#CGtMatrix3x4|CGtMatrix3x4]] || mBox
|}
=== CGtRGBA ===
A structure used to represent an RGBA color. It is an alias of the type <code>CGtV4d</code>.
= Hashes =
=== CGtHash ===
=== GtID ===
For example, the string <code>BURNOUT</code> would be represented by the GtID <code>6226094955724800000</code>.
▲|-
▲| GtID || RwUInt64 || 0x8 ||
▲|}
= 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.}}
|