Panda3D
config_gles2gsg.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_gles2gsg.cxx
10  * @author rdb
11  * @date 2009-06-14
12  */
13 
14 #include "config_gles2gsg.h"
15 #include "gles2gsg.h"
16 
17 #include "dconfig.h"
18 
19 #if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_PANDAGLES2)
20  #error Buildsystem error: BUILDING_PANDAGLES2 not defined
21 #endif
22 
23 ConfigureDef(config_gles2gsg);
24 NotifyCategoryDef(gles2gsg, ":display:gsg");
25 
26 ConfigureFn(config_gles2gsg) {
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
38  static bool initialized = false;
39  if (initialized) {
40  return;
41  }
42  initialized = true;
43 
44  GLES2init_classes();
45 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void init_libgles2gsg()
Initializes the library.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.