SpaghettiKart
Loading...
Searching...
No Matches
CustomTrack Class Reference

#include <CustomTrack.h>

Inheritance diagram for CustomTrack:
[legend]
Collaboration diagram for CustomTrack:
[legend]

Public Member Functions

 CustomTrack ()
 
virtual void Load () override
 
virtual void BeginPlay () override
 
virtual void Draw (ScreenContext *) override
 
virtual void DrawTransparency (ScreenContext *screen, uint16_t pathCounter, uint16_t cameraRot, uint16_t playerDirection) override
 
virtual void Tick () override
 
virtual bool IsMod () override
 
void InvertTriangleWindingModdedByName (const char *name)
 
void ParseMeshForCollision (TrackSections *sections, size_t numMesh)
 
void TestPath ()
 

Protected Types

enum class  SurfaceClip : uint16_t {
  CLIP_NONE , CLIP_DEFAULT , CLIP_SINGLE_SIDED_WALL , CLIP_SURFACE ,
  CLIP_DOUBLE_SIDED_WALL
}
 
enum class  DrawLayer : uint16_t { DRAW_INVISIBLE , DRAW_OPAQUE , DRAW_TRANSLUCENT , DRAW_TRANSLUCENT_NO_ZBUFFER }
 

Protected Attributes

std::vector< uint64_t > mOpaqueItems
 
std::vector< TrackSectionsmTranslucentItems
 
std::vector< TrackSectionsmTranslucentNoZBufferItems
 

Member Enumeration Documentation

◆ DrawLayer

enum class CustomTrack::DrawLayer : uint16_t
strongprotected
Enumerator
DRAW_INVISIBLE 
DRAW_OPAQUE 
DRAW_TRANSLUCENT 
DRAW_TRANSLUCENT_NO_ZBUFFER 

◆ SurfaceClip

enum class CustomTrack::SurfaceClip : uint16_t
strongprotected
Enumerator
CLIP_NONE 
CLIP_DEFAULT 
CLIP_SINGLE_SIDED_WALL 
CLIP_SURFACE 
CLIP_DOUBLE_SIDED_WALL 

Constructor & Destructor Documentation

◆ CustomTrack()

CustomTrack::CustomTrack ( )
explicit

Member Function Documentation

◆ BeginPlay()

void CustomTrack::BeginPlay ( )
overridevirtual
Here is the call graph for this function:

◆ Draw()

void CustomTrack::Draw ( ScreenContext * arg0)
overridevirtual
Here is the call graph for this function:

◆ DrawTransparency()

void CustomTrack::DrawTransparency ( ScreenContext * screen,
uint16_t pathCounter,
uint16_t cameraRot,
uint16_t playerDirection )
overridevirtual
Here is the call graph for this function:

◆ InvertTriangleWindingModdedByName()

void CustomTrack::InvertTriangleWindingModdedByName ( const char * name)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsMod()

virtual bool CustomTrack::IsMod ( )
inlineoverridevirtual

◆ Load()

void CustomTrack::Load ( )
overridevirtual

Get TrackInfo

Get Directory to Track files

Get Props, Minimap, Actors, Environment settings from scene.json

Get Track Mesh

Iterate over meshes

Sort meshes into DrawLayer queues

Generate Collision Mesh

Dumb hack that needs to be removed

Here is the call graph for this function:

◆ ParseMeshForCollision()

void CustomTrack::ParseMeshForCollision ( TrackSections * sections,
size_t numMesh )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestPath()

void CustomTrack::TestPath ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Tick()

void CustomTrack::Tick ( )
overridevirtual

Field Documentation

◆ mOpaqueItems

std::vector<uint64_t> CustomTrack::mOpaqueItems
protected

◆ mTranslucentItems

std::vector<TrackSections> CustomTrack::mTranslucentItems
protected

◆ mTranslucentNoZBufferItems

std::vector<TrackSections> CustomTrack::mTranslucentNoZBufferItems
protected

The documentation for this class was generated from the following files: