Panda3D
Loading...
Searching...
No Matches
pandagles.cxx
Go to the documentation of this file.
1/**
2 * @file pandagles.cxx
3 * @author rdb
4 * @date 2009-06-08
5 */
6
7#include "pandagles.h"
8
9#define OPENGLES_1
10#include "config_glesgsg.h"
11
12#if defined(ANDROID)
14#include "androidGraphicsPipe.h"
15#else
16#include "config_egldisplay.h"
17#include "eglGraphicsPipe.h"
18#endif
19
20/**
21 * Initializes the library. This must be called at least once before any of
22 * the functions or classes in this library can be used. Normally it will be
23 * called by the static initializers and need not be called explicitly, but
24 * special cases exist.
25 */
26void
29
30#if defined(ANDROID)
32#else
34#endif
35}
36
37/**
38 * Returns the TypeHandle index of the recommended graphics pipe type defined
39 * by this module.
40 */
41int
43#if defined(ANDROID)
44 return AndroidGraphicsPipe::get_class_type().get_index();
45#else
46 return eglGraphicsPipe::get_class_type().get_index();
47#endif
48}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
get_index
Returns the integer index associated with this TypeHandle.
Definition typeHandle.h:135
void init_libandroiddisplay()
Initializes the library.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void init_libegldisplay()
Initializes the library.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void init_libglesgsg()
Initializes the library.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void init_libpandagles()
Initializes the library.
Definition pandagles.cxx:27
int get_pipe_type_pandagles()
Returns the TypeHandle index of the recommended graphics pipe type defined by this module.
Definition pandagles.cxx:42