Richard Boegli's CnC_Generals_Zero_Hour Fork
WIP
This is documentation of Richard Boegil's Zero Hour Fork
Loading...
Searching...
No Matches
shdlib.cpp
Go to the documentation of this file.
1
/*
2
** Command & Conquer Generals Zero Hour(tm)
3
** Copyright 2025 Electronic Arts Inc.
4
**
5
** This program is free software: you can redistribute it and/or modify
6
** it under the terms of the GNU General Public License as published by
7
** the Free Software Foundation, either version 3 of the License, or
8
** (at your option) any later version.
9
**
10
** This program is distributed in the hope that it will be useful,
11
** but WITHOUT ANY WARRANTY; without even the implied warranty of
12
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
** GNU General Public License for more details.
14
**
15
** You should have received a copy of the GNU General Public License
16
** along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
/***********************************************************************************************
20
*** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
21
***********************************************************************************************
22
* *
23
* Project Name : WWShade *
24
* *
25
* $Archive:: /Commando/Code/wwshade/shdlib.cpp $*
26
* *
27
* Org Author:: Kenny Mitchell *
28
* *
29
* Author : Kenny Mitchell *
30
* *
31
* $Modtime:: 07/01/02 10:31a $*
32
* *
33
* $Revision:: 1 $*
34
* *
35
*---------------------------------------------------------------------------------------------*
36
* WWShade.lib library interface *
37
*---------------------------------------------------------------------------------------------*/
38
39
40
#include "
shdlib.h
"
41
#include "
assetmgr.h
"
42
#include "
shdloader.h
"
43
#include "
shdrenderer.h
"
44
45
void
SHD_Init
()
46
{
47
ShdRendererClass::Peek_Instance
()->
Init
();
48
}
49
50
void
SHD_Shutdown
()
51
{
52
ShdRendererClass::Peek_Instance
()->
Shutdown
();
53
}
54
55
void
SHD_Init_Shaders
()
56
{
57
ShdRendererClass::Init_Shaders
();
58
}
59
60
void
SHD_Shutdown_Shaders
()
61
{
62
ShdRendererClass::Shutdown_Shaders
();
63
}
64
65
void
SHD_Flush
()
66
{
67
ShdRendererClass::Peek_Instance
()->
Flush
();
68
}
69
70
void
SHD_Register_Loader
()
71
{
72
WW3DAssetManager::Get_Instance
()->
Register_Prototype_Loader
(&
_ShdMeshLoader
);
73
// WW3DAssetManager::Get_Instance()->Register_Prototype_Loader(&_ShdMeshLegacyLoader);
74
WW3DAssetManager::Get_Instance
()->
Register_Prototype_Loader
(&
_MeshLoader
);
75
}
assetmgr.h
ShdRendererClass::Shutdown
static void Shutdown()
Definition
shdrenderer.cpp:105
ShdRendererClass::Init
static void Init()
Definition
shdrenderer.cpp:77
ShdRendererClass::Peek_Instance
static ShdRendererClass * Peek_Instance()
Definition
shdrenderer.h:151
ShdRendererClass::Init_Shaders
static void Init_Shaders()
Definition
shdrenderer.cpp:88
ShdRendererClass::Shutdown_Shaders
static void Shutdown_Shaders()
Definition
shdrenderer.cpp:115
ShdRendererClass::Flush
virtual void Flush()=0
WW3DAssetManager::Get_Instance
static WW3DAssetManager * Get_Instance(void)
Definition
assetmgr.h:205
WW3DAssetManager::Register_Prototype_Loader
virtual void Register_Prototype_Loader(PrototypeLoaderClass *loader)
Definition
assetmgr.cpp:1517
_MeshLoader
MeshLoaderClass _MeshLoader
Definition
proto.cpp:52
SHD_Register_Loader
void SHD_Register_Loader()
Definition
shdlib.cpp:70
SHD_Init
void SHD_Init()
Definition
shdlib.cpp:45
SHD_Init_Shaders
void SHD_Init_Shaders()
Definition
shdlib.cpp:55
SHD_Shutdown
void SHD_Shutdown()
Definition
shdlib.cpp:50
SHD_Shutdown_Shaders
void SHD_Shutdown_Shaders()
Definition
shdlib.cpp:60
SHD_Flush
void SHD_Flush()
Definition
shdlib.cpp:65
shdlib.h
_ShdMeshLoader
ShdMeshLoaderClass _ShdMeshLoader
Definition
shdloader.cpp:42
shdloader.h
shdrenderer.h
Code
Libraries
Source
WWVegas
wwshade
shdlib.cpp
Generated by
1.13.2