Panda3D
 All Classes Functions Variables Enumerations
config_gles2gsg.cxx
1 // Filename: config_gles2gsg.cxx
2 // Created by: pro-rsoft (14Jun09)
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 #include "config_gles2gsg.h"
16 #include "gles2gsg.h"
17 
18 #include "dconfig.h"
19 
20 ConfigureDef(config_gles2gsg);
21 NotifyCategoryDef(gles2gsg, ":display:gsg");
22 
23 ConfigureFn(config_gles2gsg) {
24  init_libgles2gsg();
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: init_libgles2gsg
29 // Description: Initializes the library. This must be called at
30 // least once before any of the functions or classes in
31 // this library can be used. Normally it will be
32 // called by the static initializers and need not be
33 // called explicitly, but special cases exist.
34 ////////////////////////////////////////////////////////////////////
35 void
36 init_libgles2gsg() {
37  static bool initialized = false;
38  if (initialized) {
39  return;
40  }
41  initialized = true;
42 
43  GLES2init_classes();
44 }