OpenBarnyard
 
Loading...
Searching...
No Matches
TRenderPacket Class Reference

#include <TRenderPacket.h>

Public Member Functions

 TRenderPacket ()
 
 ~TRenderPacket ()
 
TRenderPacketGetNextPacket ()
 
void SetNextPacket (TRenderPacket *a_pNextPacket)
 
TMeshGetMesh () const
 
void SetMesh (TMesh *a_pMesh)
 
TSkeletonInstanceGetSkeletonInstance () const
 
void SetSkeletonInstance (TSkeletonInstance *a_pSkeletonInstance)
 
TMaterialGetMaterial () const
 
void SetMaterial (TMaterial *pMaterial)
 
TMatrix44GetModelViewMatrix ()
 
void SetModelViewMatrix (TMatrix44 &a_rMatrix44)
 
void SetAmbientColour (const TVector3 &a_rColour)
 
const TVector3GetAmbientColour () const
 
void SetLightColour (const TVector3 &a_rColour)
 
const TVector3GetLightColour () const
 
void SetLightDirection (const TVector3 &a_rDirection)
 
const TVector3GetLightDirection () const
 
TUINT8 GetShadeCoeff () const
 
void SetShadeCoeff (TUINT8 val)
 
TFLOAT GetAlpha () const
 
void SetAlpha (TFLOAT val)
 

Detailed Description

Definition at line 9 of file TRenderPacket.h.

Constructor & Destructor Documentation

◆ TRenderPacket()

TRenderPacket::TRenderPacket ( )

Definition at line 12 of file TRenderPacket.cpp.

13{
14 m_pNextPacket = TNULL;
15 m_pUnk = TNULL;
16 m_pSkeletonInstance = TNULL;
17 m_oAmbientColour = { 0.24f, 0.24f, 0.24f };
18 m_oLightColour.x = 1.0f;
19 m_oLightColour.y = 1.0f;
20 m_oLightColour.z = 0.65f;
21 m_oLightDirection.x = -0.47f;
22 m_oLightDirection.y = 0.74f;
23 m_oLightDirection.z = 0.47f;
24 m_ui8Unk1 = 255;
25}
#define TNULL
Definition Typedefs.h:23

◆ ~TRenderPacket()

TRenderPacket::~TRenderPacket ( )

Definition at line 27 of file TRenderPacket.cpp.

28{
29}

Member Function Documentation

◆ GetAlpha()

TFLOAT TRenderPacket::GetAlpha ( ) const
inline

Definition at line 42 of file TRenderPacket.h.

42{ return m_fAlpha; }

◆ GetAmbientColour()

const TVector3 & TRenderPacket::GetAmbientColour ( ) const
inline

Definition at line 31 of file TRenderPacket.h.

31{ return m_oAmbientColour; }

◆ GetLightColour()

const TVector3 & TRenderPacket::GetLightColour ( ) const
inline

Definition at line 34 of file TRenderPacket.h.

34{ return m_oLightColour; }

◆ GetLightDirection()

const TVector3 & TRenderPacket::GetLightDirection ( ) const
inline

Definition at line 37 of file TRenderPacket.h.

37{ return m_oLightDirection; }

◆ GetMaterial()

TMaterial * TRenderPacket::GetMaterial ( ) const
inline

Definition at line 24 of file TRenderPacket.h.

24{ return m_pMaterial; }

◆ GetMesh()

TMesh * TRenderPacket::GetMesh ( ) const
inline

Definition at line 18 of file TRenderPacket.h.

18{ return m_pMesh; }

◆ GetModelViewMatrix()

TMatrix44 & TRenderPacket::GetModelViewMatrix ( )
inline

Definition at line 27 of file TRenderPacket.h.

27{ return m_oModelView; }

◆ GetNextPacket()

TRenderPacket * TRenderPacket::GetNextPacket ( )
inline

Definition at line 15 of file TRenderPacket.h.

15{ return m_pNextPacket; }

◆ GetShadeCoeff()

TUINT8 TRenderPacket::GetShadeCoeff ( ) const
inline

Definition at line 39 of file TRenderPacket.h.

39{ return m_ui8ShadeCoeff; }

◆ GetSkeletonInstance()

TSkeletonInstance * TRenderPacket::GetSkeletonInstance ( ) const
inline

Definition at line 21 of file TRenderPacket.h.

21{ return m_pSkeletonInstance; }

◆ SetAlpha()

void TRenderPacket::SetAlpha ( TFLOAT val)
inline

Definition at line 43 of file TRenderPacket.h.

43{ m_fAlpha = val; }

◆ SetAmbientColour()

void TRenderPacket::SetAmbientColour ( const TVector3 & a_rColour)
inline

Definition at line 30 of file TRenderPacket.h.

30{ m_oAmbientColour = a_rColour; }

◆ SetLightColour()

void TRenderPacket::SetLightColour ( const TVector3 & a_rColour)
inline

Definition at line 33 of file TRenderPacket.h.

33{ m_oLightColour = a_rColour; }

◆ SetLightDirection()

void TRenderPacket::SetLightDirection ( const TVector3 & a_rDirection)
inline

Definition at line 36 of file TRenderPacket.h.

36{ m_oLightDirection = a_rDirection; }

◆ SetMaterial()

void TRenderPacket::SetMaterial ( TMaterial * pMaterial)
inline

Definition at line 25 of file TRenderPacket.h.

25{ m_pMaterial = pMaterial; }

◆ SetMesh()

void TRenderPacket::SetMesh ( TMesh * a_pMesh)
inline

Definition at line 19 of file TRenderPacket.h.

19{ m_pMesh = a_pMesh; }

◆ SetModelViewMatrix()

void TRenderPacket::SetModelViewMatrix ( TMatrix44 & a_rMatrix44)
inline

Definition at line 28 of file TRenderPacket.h.

28{ m_oModelView = a_rMatrix44; }

◆ SetNextPacket()

void TRenderPacket::SetNextPacket ( TRenderPacket * a_pNextPacket)
inline

Definition at line 16 of file TRenderPacket.h.

16{ m_pNextPacket = a_pNextPacket; }

◆ SetShadeCoeff()

void TRenderPacket::SetShadeCoeff ( TUINT8 val)
inline

Definition at line 40 of file TRenderPacket.h.

40{ m_ui8ShadeCoeff = val; }

◆ SetSkeletonInstance()

void TRenderPacket::SetSkeletonInstance ( TSkeletonInstance * a_pSkeletonInstance)
inline

Definition at line 22 of file TRenderPacket.h.

22{ m_pSkeletonInstance = a_pSkeletonInstance; }

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