OpenBarnyard
 
Loading...
Searching...
No Matches
ASkinLightingManager.h
Go to the documentation of this file.
1#pragma once
3
4#include <Toshi/TSingleton.h>
5#include <File/TTRB.h>
6
8 : public Toshi::TSingleton<ASkinLightingManager>
9{
10public:
11 struct SkinLight
12 {
13 // TODO: Figure out which textures are for day and for night
14 const TCHAR* szTex1;
15 const TCHAR* szTex2;
16 const TCHAR* szTex3;
17 const TCHAR* szTex4;
18 Toshi::TTexture* pTex1;
19 Toshi::TTexture* pTex2;
20 Toshi::TTexture* pTex3;
21 Toshi::TTexture* pTex4;
24 };
25
31
32public:
35
36 void ApplySkinLight( Toshi::TManagedModel* a_pModel, const TCHAR* a_szMaterialName, SkinLight* a_pLight );
37 SkinLight* FindSkinLight( const TCHAR* a_szMaterialName );
38
39private:
40 TINT m_iUnk;
41 AMaterialLibrary* m_pSkinLightMatLib;
42 Toshi::TTRB m_oTRB;
43 SkinLightTRBHeader* m_pSkinLightHeader;
44};
TRB (Toshi Relocatable Binary) resource system for the Toshi engine.
char TCHAR
Definition Typedefs.h:20
int TINT
Definition Typedefs.h:7
SkinLight * FindSkinLight(const TCHAR *a_szMaterialName)
void ApplySkinLight(Toshi::TManagedModel *a_pModel, const TCHAR *a_szMaterialName, SkinLight *a_pLight)