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
46{
47public:
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*/
57{
58public:
59
60 virtual int Chunk_Type(void) { return W3D_CHUNK_MESH; }
61 virtual PrototypeClass * Load_W3D(ChunkLoadClass & cload);
62};
63
64
67
68#endif
@ W3D_CHUNK_MESH
Definition w3d_file.h:341
@ W3D_CHUNK_SHDMESH
Definition w3d_file.h:491
PrototypeLoaderClass(void)
Definition proto.h:139
virtual int Chunk_Type(void)
Definition shdloader.h:60
virtual PrototypeClass * Load_W3D(ChunkLoadClass &cload)
Definition shdloader.cpp:82
virtual PrototypeClass * Load_W3D(ChunkLoadClass &cload)
Definition shdloader.cpp:57
virtual int Chunk_Type(void)
Definition shdloader.h:49
ShdMeshLegacyLoaderClass _ShdMeshLegacyLoader
Definition shdloader.cpp:43
ShdMeshLoaderClass _ShdMeshLoader
Definition shdloader.cpp:42