Panda3D

Loading...
Searching...
No Matches
config_glesgsg.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_glesgsg.cxx
10 * @author rdb
11 * @date 2009-05-21
12 */
13
14#include "config_glesgsg.h"
15#include "glesgsg.h"
16
17#include "dconfig.h"
18
19#if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_PANDAGLES)
20 #error Buildsystem error: BUILDING_PANDAGLES not defined
21#endif
22
23ConfigureDef(config_glesgsg);
24NotifyCategoryDef(glesgsg, ":display:gsg");
25
26ConfigureFn(config_glesgsg) {
27 init_libglesgsg();
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_libglesgsg() {
38 static bool initialized = false;
39 if (initialized) {
40 return;
41 }
42 initialized = true;
43
44 GLESinit_classes();
45}
init_libglesgsg
void init_libglesgsg()
Initializes the library.
Definition config_glesgsg.cxx:37
config_glesgsg.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
dconfig.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
glesgsg.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.