Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
layer.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 : WW3D *
24 * *
25 * $Archive:: /VSS_Sync/ww3d2/layer.h $*
26 * *
27 * $Author:: Vss_sync $*
28 * *
29 * $Modtime:: 8/29/01 7:29p $*
30 * *
31 * $Revision:: 2 $*
32 * *
33 *---------------------------------------------------------------------------------------------*
34 * Functions: *
35 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
36
37
38#if defined(_MSC_VER)
39#pragma once
40#endif
41
42#ifndef LAYER_H
43#define LAYER_H
44
45#include "always.h"
46#include "listnode.h"
47#include "vector3.h"
48
49class SceneClass;
50class CameraClass;
51
52class LayerClass;
54
56{
57
58public:
59
60 LayerClass(void);
61 LayerClass(SceneClass * s,CameraClass * c,bool clear = false,bool clearz = false,const Vector3 & color = Vector3(0,0,0));
62 LayerClass(const LayerClass & src);
63 ~LayerClass(void);
64
65
66 /*
67 ** The following functions will handle the references of the Scene and Camera
68 ** objects properly.
69 */
70 void Set_Scene(SceneClass * scene);
71 SceneClass * Get_Scene(void) const;
72 SceneClass * Peek_Scene(void) const;
73 void Set_Camera(CameraClass * cam);
74 CameraClass * Get_Camera(void) const;
75 CameraClass * Peek_Camera(void) const;
76
77
78 // [SKB: Aug 14 2001 @ 1:53pm] :
79 // Add a method to copy one layer to another - I would like to create an assignment
80 // operator but it could break old code.
81 void Set(const LayerClass & layer);
82
83 /*
84 ** LayerClass members are public since this is a "lightweight" class
85 */
86 bool Clear;
87 bool ClearZ;
89
92
93};
94
96
97
98#endif //LAYER_H
99
100
CameraClass * Camera
Definition layer.h:91
void Set_Scene(SceneClass *scene)
Definition layer.cpp:156
void Set(const LayerClass &layer)
Definition layer.cpp:282
CameraClass * Peek_Camera(void) const
Definition layer.cpp:264
~LayerClass(void)
Definition layer.cpp:131
Vector3 ClearColor
Definition layer.h:88
bool Clear
Definition layer.h:86
SceneClass * Scene
Definition layer.h:90
void Set_Camera(CameraClass *cam)
Definition layer.cpp:219
LayerClass(void)
Definition layer.cpp:65
SceneClass * Get_Scene(void) const
Definition layer.cpp:180
bool ClearZ
Definition layer.h:87
CameraClass * Get_Camera(void) const
Definition layer.cpp:243
SceneClass * Peek_Scene(void) const
Definition layer.cpp:201
Definition list.h:60
Node< LayerClass * > LayerNodeClass
Definition layer.h:53
List< LayerClass * > LayerListClass
Definition layer.h:95