]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/renderer/RenderEntity.cpp
Use the same OpenAL headers on all platforms.
[icculus/iodoom3.git] / neo / renderer / RenderEntity.cpp
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
34 idRenderEntityLocal::idRenderEntityLocal() {
35         memset( &parms, 0, sizeof( parms ) );
36         memset( modelMatrix, 0, sizeof( modelMatrix ) );
37
38         world                                   = NULL;
39         index                                   = 0;
40         lastModifiedFrameNum    = 0;
41         archived                                = false;
42         dynamicModel                    = NULL;
43         dynamicModelFrameCount  = 0;
44         cachedDynamicModel              = NULL;
45         referenceBounds                 = bounds_zero;
46         viewCount                               = 0;
47         viewEntity                              = NULL;
48         visibleCount                    = 0;
49         decals                                  = NULL;
50         overlay                                 = NULL;
51         entityRefs                              = NULL;
52         firstInteraction                = NULL;
53         lastInteraction                 = NULL;
54         needsPortalSky                  = false;
55 }
56
57 void idRenderEntityLocal::FreeRenderEntity() {
58 }
59
60 void idRenderEntityLocal::UpdateRenderEntity( const renderEntity_t *re, bool forceUpdate ) {
61 }
62
63 void idRenderEntityLocal::GetRenderEntity( renderEntity_t *re ) {
64 }
65
66 void idRenderEntityLocal::ForceUpdate() {
67 }
68
69 int idRenderEntityLocal::GetIndex() {
70         return index;
71 }
72
73 void idRenderEntityLocal::ProjectOverlay( const idPlane localTextureAxis[2], const idMaterial *material ) {
74 }
75 void idRenderEntityLocal::RemoveDecals() {
76 }
77
78 //======================================================================
79
80 idRenderLightLocal::idRenderLightLocal() {
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;
92         lastModifiedFrameNum    = 0;
93         archived                                = false;
94         lightShader                             = NULL;
95         falloffImage                    = NULL;
96         globalLightOrigin               = vec3_zero;
97         frustumTris                             = NULL;
98         numShadowFrustums               = 0;
99         viewCount                               = 0;
100         viewLight                               = NULL;
101         references                              = NULL;
102         foggedPortals                   = NULL;
103         firstInteraction                = NULL;
104         lastInteraction                 = NULL;
105 }
106
107 void idRenderLightLocal::FreeRenderLight() {
108 }
109 void idRenderLightLocal::UpdateRenderLight( const renderLight_t *re, bool forceUpdate ) {
110 }
111 void idRenderLightLocal::GetRenderLight( renderLight_t *re ) {
112 }
113 void idRenderLightLocal::ForceUpdate() {
114 }
115 int idRenderLightLocal::GetIndex() {
116         return index;
117 }