Richard Boegli's CnC_Generals_Zero_Hour Fork
WIP
This is documentation of Richard Boegil's Zero Hour Fork
Loading...
Searching...
No Matches
shdinterface.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:: wwshade/shdinterface.cpp $*
26
* *
27
* $Org Author:: Jani_p
28
*
29
* $Author:: Kenny_m
30
*
31
* $Modtime:: 6/05/02 3:12p $*
32
* *
33
* $Revision:: 2 $*
34
* *
35
* 6/05/02 KJM : Added texture info functions
36
*---------------------------------------------------------------------------------------------*
37
* Functions: *
38
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
39
40
#include "
shdinterface.h
"
41
#include "
shddef.h
"
42
43
44
//**********************************************************************************************
46
51
ShdInterfaceClass::ShdInterfaceClass
(
const
ShdDefClass
* def,
int
class_id) :
52
Definition
(
NULL
),
53
ClassID
(class_id)
54
{
55
REF_PTR_SET
(
Definition
,def);
56
}
57
58
59
//**********************************************************************************************
61
64
ShdInterfaceClass::~ShdInterfaceClass
(
void
)
65
{
66
REF_PTR_RELEASE
(
Definition
);
67
}
68
69
70
//**********************************************************************************************
72
75
const
ShdDefClass
*
ShdInterfaceClass::Peek_Definition
(
void
)
76
{
77
return
Definition
;
78
}
NULL
#define NULL
Definition
BaseType.h:92
ShdDefClass
Definition
shddef.h:85
ShdInterfaceClass::~ShdInterfaceClass
virtual ~ShdInterfaceClass(void)
Destructor.
Definition
shdinterface.cpp:64
ShdInterfaceClass::ShdInterfaceClass
ShdInterfaceClass(const ShdDefClass *def, int class_id)
Constructor.
Definition
shdinterface.cpp:51
ShdInterfaceClass::Peek_Definition
const ShdDefClass * Peek_Definition(void)
returns a pointer to the definition for this shader
Definition
shdinterface.cpp:75
ShdInterfaceClass::ClassID
int ClassID
Definition
shdinterface.h:137
ShdInterfaceClass::Definition
const ShdDefClass * Definition
Definition
shdinterface.h:136
REF_PTR_RELEASE
#define REF_PTR_RELEASE(x)
Definition
refcount.h:80
REF_PTR_SET
#define REF_PTR_SET(dst, src)
Definition
refcount.h:79
shddef.h
shdinterface.h
Code
Libraries
Source
WWVegas
wwshade
shdinterface.cpp
Generated by
1.13.2