9 #ifndef GlobeEngine_Engine_h
10 #define GlobeEngine_Engine_h
12 #include "OpenGL_Includes.h"
16 #include <vmmlib/matrix.hpp>
51 virtual void resize(
int _w,
int _h) = 0;
82 std::shared_ptr<ge::Camera>
getCamera(
int _index);
97 #ifdef GENGINE_GLAPI_410_AND_LOWER
101 if (err != GL_NO_ERROR) {
102 printf(_input.c_str(), gluErrorString(err));
110 #ifdef GENGINE_GLAPI_410_AND_LOWER
114 if (err != GL_NO_ERROR) {
115 printf(_input, gluErrorString(err));
133 std::vector< std::shared_ptr<ge::Camera> >
cameras;
154 std::shared_ptr<TextureHandle> uifboid;
156 float devicePixelRatio;
DEBUGSTATE
Definition: Engine.h:31
int getSelectedCamID() const
Definition: Engine.cpp:109
virtual void resize(int _w, int _h)=0
void initExtension()
Definition: Engine.cpp:81
void setDebugState(enum DEBUGSTATE state)
Definition: Engine.cpp:240
void printLineRenderingInfo()
Definition: Engine.cpp:117
const std::shared_ptr< TextureHandle > & getUIFramebufferHandle()
Definition: Engine.cpp:277
bool isUIFramebufferActive()
Definition: Engine.cpp:281
double getElapsedTimeForLastFrame()
Definition: Engine.cpp:293
~Engine()
Definition: Engine.cpp:37
void enableAnimationLoop(bool _in)
Definition: Engine.cpp:255
virtual void clear()
Definition: Engine.cpp:45
void getOpenGLError(char const *_input)
Definition: Engine.h:108
void setProgrammState(enum PROGRAMMSTATE state)
Definition: Engine.cpp:235
void getOpenGLError(std::string const &_input)
Definition: Engine.h:96
eTEXTURE_UNITS
Definition: Engine.h:23
enum PICKINGSTATE pickingState
Tells you if there is a picking event or result ongoing.
Definition: Engine.h:141
Engine()
Definition: Engine.cpp:21
enum DEBUGSTATE debugstate
Tells you if the application is running with debug output.
Definition: Engine.h:140
virtual void create()
Definition: Engine.cpp:61
void setSelectedCamID(int _id)
Definition: Engine.cpp:113
void setDevicePixelRatio(float _in)
Definition: Engine.cpp:231
bool pickingEnabled
Definition: Engine.h:146
void disableUIFramebuffer()
Definition: Engine.cpp:289
void enableUIFramebuffer(bool _in=true)
Definition: Engine.cpp:285
void printFramebufferInfo()
Definition: Engine.cpp:184
int getCameraCount()
Definition: Engine.cpp:96
void enableWireframe(bool _in)
Definition: Engine.cpp:265
PROGRAMMSTATE
Definition: Engine.h:35
enum DEBUGSTATE getDebugState()
Definition: Engine.h:62
void setUIFramebufferID(unsigned int _id)
Definition: Engine.cpp:273
int selectedCameraID
Definition: Engine.h:134
std::shared_ptr< ge::Camera > getCamera(int _index)
Definition: Engine.cpp:100
bool isPickingEnabled()
Definition: Engine.cpp:250
float getDevicePixelRatio()
Definition: Engine.cpp:227
PICKINGSTATE
Definition: Engine.h:26
virtual void initializeScene(std::string _initFilePath=0)=0
bool isWireframeEnabled()
Definition: Engine.cpp:269
Definition: AvalancheTrainingSimulationEngine.h:28
std::shared_ptr< ge::Camera > getSelectedCam()
Definition: Engine.cpp:105
std::vector< std::shared_ptr< ge::Camera > > cameras
Definition: Engine.h:133
virtual void drawScene()=0
void enablePicking(bool _in)
Definition: Engine.cpp:245
void draw()
Definition: Engine.cpp:66
void printTextureInfo()
Definition: Engine.cpp:159
void printBufferInformation()
Definition: Engine.cpp:204
bool animationsEnabled
Definition: Engine.h:147
bool isAnimationLoopEnabled()
Definition: Engine.cpp:260
enum PROGRAMMSTATE getProgrammState()
Definition: Engine.h:57
enum PROGRAMMSTATE programstate
Tells you the state of the application.
Definition: Engine.h:139