Panda3D

config_glgsg.cxx
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file config_glgsg.cxx
10 * @author drose
11 * @date 1999-10-06
12 */
13
14 #include "config_glgsg.h"
15 #include "glgsg.h"
16
17 #include "dconfig.h"
18
19 #if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_PANDA_GLGSG)
20 #error Buildsystem error: BUILDING_PANDA_GLGSG not defined
21 #endif
22
23 ConfigureDef(config_glgsg);
24 NotifyCategoryDef(glgsg, ":display:gsg");
25
26 ConfigureFn(config_glgsg) {
27 init_libglgsg();
28 }
29
30 /**
31 * Initializes the library. This must be called at least once before any of
32 * the functions or classes in this library can be used. Normally it will be
33 * called by the static initializers and need not be called explicitly, but
34 * special cases exist.
35 */
36 void
37 init_libglgsg() {
38 static bool initialized = false;
39 if (initialized) {
40 return;
41 }
42 initialized = true;
43
44 GLinit_classes();
45 }
init_libglgsg
void init_libglgsg()
Initializes the library.
Definition: config_glgsg.cxx:37
config_glgsg.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
dconfig.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
glgsg.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.