OpenBarnyard
 
Loading...
Searching...
No Matches
TRenderPacket.h
Go to the documentation of this file.
1#pragma once
2#include "Math/TMatrix44.h"
3#include "Render/TMaterial.h"
4#include "Render/TMesh.h"
5#include "Render/TAnimation.h"
6
8
10{
11public:
14
15 TRenderPacket* GetNextPacket() { return m_pNextPacket; }
16 void SetNextPacket( TRenderPacket* a_pNextPacket ) { m_pNextPacket = a_pNextPacket; }
17
18 TMesh* GetMesh() const { return m_pMesh; }
19 void SetMesh( TMesh* a_pMesh ) { m_pMesh = a_pMesh; }
20
21 TSkeletonInstance* GetSkeletonInstance() const { return m_pSkeletonInstance; }
22 void SetSkeletonInstance( TSkeletonInstance* a_pSkeletonInstance ) { m_pSkeletonInstance = a_pSkeletonInstance; }
23
24 TMaterial* GetMaterial() const { return m_pMaterial; }
25 void SetMaterial( TMaterial* pMaterial ) { m_pMaterial = pMaterial; }
26
27 TMatrix44& GetModelViewMatrix() { return m_oModelView; }
28 void SetModelViewMatrix( TMatrix44& a_rMatrix44 ) { m_oModelView = a_rMatrix44; }
29
30 void SetAmbientColour( const TVector3& a_rColour ) { m_oAmbientColour = a_rColour; }
31 const TVector3& GetAmbientColour() const { return m_oAmbientColour; }
32
33 void SetLightColour( const TVector3& a_rColour ) { m_oLightColour = a_rColour; }
34 const TVector3& GetLightColour() const { return m_oLightColour; }
35
36 void SetLightDirection( const TVector3& a_rDirection ) { m_oLightDirection = a_rDirection; }
37 const TVector3& GetLightDirection() const { return m_oLightDirection; }
38
39 TUINT8 GetShadeCoeff() const { return m_ui8ShadeCoeff; }
40 void SetShadeCoeff( TUINT8 val ) { m_ui8ShadeCoeff = val; }
41
42 TFLOAT GetAlpha() const { return m_fAlpha; }
43 void SetAlpha( TFLOAT val ) { m_fAlpha = val; }
44
45#ifndef TOSHI_SDK
46private:
47#endif
48 TRenderPacket* m_pNextPacket;
49 void* m_pUnk;
50 TMesh* m_pMesh;
51 TMatrix44 m_oModelView;
52 TSkeletonInstance* m_pSkeletonInstance;
53 TMaterial* m_pMaterial;
54 TVector3 m_oAmbientColour;
55 TVector3 m_oLightColour;
56 TVector3 m_oLightDirection;
57 TUINT8 m_ui8Unk1;
58 TUINT8 m_ui8ShadeCoeff;
59 TFLOAT m_fAlpha;
60};
61
4x4 matrix implementation for the Toshi engine
#define TOSHI_NAMESPACE_START
Definition Defines.h:47
#define TOSHI_NAMESPACE_END
Definition Defines.h:50
uint8_t TUINT8
Definition Typedefs.h:17
float TFLOAT
Definition Typedefs.h:4
Definition TMesh.h:9
void SetLightColour(const TVector3 &a_rColour)
void SetSkeletonInstance(TSkeletonInstance *a_pSkeletonInstance)
const TVector3 & GetLightDirection() const
const TVector3 & GetLightColour() const
void SetAmbientColour(const TVector3 &a_rColour)
void SetModelViewMatrix(TMatrix44 &a_rMatrix44)
TFLOAT GetAlpha() const
void SetMesh(TMesh *a_pMesh)
TUINT8 GetShadeCoeff() const
const TVector3 & GetAmbientColour() const
void SetShadeCoeff(TUINT8 val)
TMaterial * GetMaterial() const
void SetAlpha(TFLOAT val)
TSkeletonInstance * GetSkeletonInstance() const
void SetMaterial(TMaterial *pMaterial)
void SetNextPacket(TRenderPacket *a_pNextPacket)
TRenderPacket * GetNextPacket()
TMatrix44 & GetModelViewMatrix()
TMesh * GetMesh() const
void SetLightDirection(const TVector3 &a_rDirection)