doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RenderEntity.cpp
Go to the documentation of this file.
1 /*
2 ===========================================================================
3 
4 Doom 3 GPL Source Code
5 Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
6 
7 This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
8 
9 Doom 3 Source Code is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 Doom 3 Source Code is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with Doom 3 Source Code. If not, see <http://www.gnu.org/licenses/>.
21 
22 In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code. If not, please request a copy in writing from id Software at the address below.
23 
24 If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
25 
26 ===========================================================================
27 */
28 
29 #include "../idlib/precompiled.h"
30 #pragma hdrstop
31 
32 #include "tr_local.h"
33 
35  memset( &parms, 0, sizeof( parms ) );
36  memset( modelMatrix, 0, sizeof( modelMatrix ) );
37 
38  world = NULL;
39  index = 0;
41  archived = false;
46  viewCount = 0;
47  viewEntity = NULL;
48  visibleCount = 0;
49  decals = NULL;
50  overlay = NULL;
51  entityRefs = NULL;
54  needsPortalSky = false;
55 }
56 
58 }
59 
60 void idRenderEntityLocal::UpdateRenderEntity( const renderEntity_t *re, bool forceUpdate ) {
61 }
62 
64 }
65 
67 }
68 
70  return index;
71 }
72 
73 void idRenderEntityLocal::ProjectOverlay( const idPlane localTextureAxis[2], const idMaterial *material ) {
74 }
76 }
77 
78 //======================================================================
79 
81  memset( &parms, 0, sizeof( parms ) );
82  memset( modelMatrix, 0, sizeof( modelMatrix ) );
83  memset( shadowFrustums, 0, sizeof( shadowFrustums ) );
84  memset( lightProject, 0, sizeof( lightProject ) );
85  memset( frustum, 0, sizeof( frustum ) );
86  memset( frustumWindings, 0, sizeof( frustumWindings ) );
87 
88  lightHasMoved = false;
89  world = NULL;
90  index = 0;
91  areaNum = 0;
93  archived = false;
94  lightShader = NULL;
97  frustumTris = NULL;
99  viewCount = 0;
100  viewLight = NULL;
101  references = NULL;
105 }
106 
108 }
109 void idRenderLightLocal::UpdateRenderLight( const renderLight_t *re, bool forceUpdate ) {
110 }
112 }
114 }
116  return index;
117 }
idRenderWorldLocal * world
Definition: tr_local.h:255
const idMaterial * lightShader
Definition: tr_local.h:213
idRenderModel * dynamicModel
Definition: tr_local.h:263
struct doublePortal_s * foggedPortals
Definition: tr_local.h:233
virtual int GetIndex()
idPlane frustum[6]
Definition: tr_local.h:219
struct viewEntity_s * viewEntity
Definition: tr_local.h:274
virtual void FreeRenderEntity()
virtual void UpdateRenderLight(const renderLight_t *re, bool forceUpdate=false)
areaReference_t * entityRefs
Definition: tr_local.h:285
renderLight_t parms
Definition: tr_local.h:191
idBounds bounds_zero(vec3_zero, vec3_zero)
float modelMatrix[16]
Definition: tr_local.h:253
virtual void UpdateRenderEntity(const renderEntity_t *re, bool forceUpdate=false)
shadowFrustum_t shadowFrustums[6]
Definition: tr_local.h:224
idInteraction * lastInteraction
Definition: tr_local.h:287
virtual void GetRenderEntity(renderEntity_t *re)
idBounds referenceBounds
Definition: tr_local.h:268
virtual void GetRenderLight(renderLight_t *re)
idPlane lightProject[4]
Definition: tr_local.h:211
int dynamicModelFrameCount
Definition: tr_local.h:264
idRenderModelDecal * decals
Definition: tr_local.h:282
GLuint index
Definition: glext.h:3476
idRenderWorldLocal * world
Definition: tr_local.h:198
#define vec3_zero
Definition: Vector.h:390
areaReference_t * references
Definition: tr_local.h:229
int lastModifiedFrameNum
Definition: tr_local.h:204
idImage * falloffImage
Definition: tr_local.h:214
#define NULL
Definition: Lib.h:88
idInteraction * firstInteraction
Definition: tr_local.h:230
Definition: Plane.h:71
float modelMatrix[16]
Definition: tr_local.h:196
idRenderModel * cachedDynamicModel
Definition: tr_local.h:266
virtual int GetIndex()
srfTriangles_t * frustumTris
Definition: tr_local.h:221
virtual void ProjectOverlay(const idPlane localTextureAxis[2], const idMaterial *material)
virtual void ForceUpdate()
idInteraction * lastInteraction
Definition: tr_local.h:231
idRenderModelOverlay * overlay
Definition: tr_local.h:283
idWinding * frustumWindings[6]
Definition: tr_local.h:220
idInteraction * firstInteraction
Definition: tr_local.h:286
virtual void ForceUpdate()
renderEntity_t parms
Definition: tr_local.h:251
virtual void FreeRenderLight()
virtual void RemoveDecals()
struct viewLight_s * viewLight
Definition: tr_local.h:227
idVec3 globalLightOrigin
Definition: tr_local.h:216