Richard Boegli's CnC_Generals_Zero_Hour Fork
WIP
This is documentation of Richard Boegil's Zero Hour Fork
Loading...
Searching...
No Matches
shdloader.h
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/shdloader.h $*
26
* *
27
* Org Author:: Kenny Mitchell *
28
* *
29
* Author : Kenny Mitchell *
30
* *
31
* $Modtime:: 06/27/02 3:51p $*
32
* *
33
* $Revision:: 1 $*
34
* *
35
* 06/26/02 KM Integrating shader system
36
*---------------------------------------------------------------------------------------------*/
37
38
#ifndef SHDLOADER_H
39
#define SHDLOADER_H
40
41
#ifndef PROTO_H
42
#include "
proto.h
"
43
#endif
44
45
class
ShdMeshLoaderClass
:
public
PrototypeLoaderClass
46
{
47
public
:
48
49
virtual
int
Chunk_Type
(
void
) {
return
W3D_CHUNK_SHDMESH
; }
50
virtual
PrototypeClass
*
Load_W3D
(
ChunkLoadClass
& cload);
51
};
52
53
/*
54
** Prototype loader that converts legacy meshes into Shader meshes
55
*/
56
class
ShdMeshLegacyLoaderClass
:
public
PrototypeLoaderClass
57
{
58
public
:
59
60
virtual
int
Chunk_Type
(
void
) {
return
W3D_CHUNK_MESH
; }
61
virtual
PrototypeClass
*
Load_W3D
(
ChunkLoadClass
& cload);
62
};
63
64
65
extern
ShdMeshLoaderClass
_ShdMeshLoader
;
66
extern
ShdMeshLegacyLoaderClass
_ShdMeshLegacyLoader
;
67
68
#endif
W3D_CHUNK_MESH
@ W3D_CHUNK_MESH
Definition
w3d_file.h:341
W3D_CHUNK_SHDMESH
@ W3D_CHUNK_SHDMESH
Definition
w3d_file.h:491
ChunkLoadClass
Definition
chunkio.h:183
PrototypeClass
Definition
proto.h:86
PrototypeLoaderClass::PrototypeLoaderClass
PrototypeLoaderClass(void)
Definition
proto.h:139
ShdMeshLegacyLoaderClass
Definition
shdloader.h:57
ShdMeshLegacyLoaderClass::Chunk_Type
virtual int Chunk_Type(void)
Definition
shdloader.h:60
ShdMeshLegacyLoaderClass::Load_W3D
virtual PrototypeClass * Load_W3D(ChunkLoadClass &cload)
Definition
shdloader.cpp:82
ShdMeshLoaderClass
Definition
shdloader.h:46
ShdMeshLoaderClass::Load_W3D
virtual PrototypeClass * Load_W3D(ChunkLoadClass &cload)
Definition
shdloader.cpp:57
ShdMeshLoaderClass::Chunk_Type
virtual int Chunk_Type(void)
Definition
shdloader.h:49
proto.h
_ShdMeshLegacyLoader
ShdMeshLegacyLoaderClass _ShdMeshLegacyLoader
Definition
shdloader.cpp:43
_ShdMeshLoader
ShdMeshLoaderClass _ShdMeshLoader
Definition
shdloader.cpp:42
Code
Libraries
Source
WWVegas
wwshade
shdloader.h
Generated by
1.13.2