coastline 0.0.4
Loading...
Searching...
No Matches
TrackInstance Struct Reference

A model placed on the track. More...

#include <track.h>

Collaboration diagram for TrackInstance:

Public Attributes

union { 
   f32   matrix [4][4] 
   struct { 
      Vec3f   vector 
      f32   w 
   }   rows [4]
}; 
f32 invScale
Gfx * displayList
u16 groups
u16 hidesGroups
u16 flags
u16 vertexCount
u16 triangleCount
u16 polygonCount

Detailed Description

A model placed on the track.

Its fields join this structure as they are reconstructed.

Member Data Documentation

◆ matrix

f32 TrackInstance::matrix[4][4]

Where and how the model is placed.

◆ vector

Vec3f TrackInstance::vector

The first three components of a matrix row.

◆ w

f32 TrackInstance::w

The fourth component of a matrix row.

◆ [struct]

struct { ... } TrackInstance::rows[4]

The placement matrix as four rows.

◆ [union]

union { ... } TrackInstance

◆ invScale

f32 TrackInstance::invScale

One over the length of the x axis of the matrix, the inverse of the scale.

◆ displayList

Gfx* TrackInstance::displayList

The display list that draws the model.

◆ groups

u16 TrackInstance::groups

The groups of the model, hidden near a model that hides them.

◆ hidesGroups

u16 TrackInstance::hidesGroups

The groups the model hides while a ray from the camera hits it.

◆ flags

u16 TrackInstance::flags

The TRACK_INSTANCE_ flags.

◆ vertexCount

u16 TrackInstance::vertexCount

The number of vertices of the model, for the counts of a frame.

◆ triangleCount

u16 TrackInstance::triangleCount

The number of triangles of the model, for the counts of a frame.

◆ polygonCount

u16 TrackInstance::polygonCount

The number of polygons of the model, for the counts of a frame.


The documentation for this struct was generated from the following file: