Panda3D
 All Classes Functions Variables Enumerations
tinyGraphicsStateGuardian.I
1 // Filename: tinyGraphicsStateGuardian.I
2 // Created by: drose (24Apr08)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: TinyGraphicsStateGuardian::clear_light_state
18 // Access: Private
19 // Description: Removes the current list of active lights from the
20 // current state context.
21 ////////////////////////////////////////////////////////////////////
22 INLINE void TinyGraphicsStateGuardian::
23 clear_light_state() {
24  _c->lighting_enabled = false;
25 #ifndef NDEBUG
26  GLLight *gl_light = _c->first_light;
27  while (gl_light != (GLLight *)NULL) {
28  GLLight *next = gl_light->next;
29  gl_light->next = NULL;
30  gl_light = next;
31  }
32 #endif // NDEBUG
33  _c->first_light = NULL;
34 }
Definition: zgl.h:48