GlobeEngine
ge::Engine Class Referenceabstract

#include <Engine.h>

Inheritance diagram for ge::Engine:
at::AtmosphereEngine geAstro::ExoEngine geATS::AvalancheTrainingSimulationEngine geClimateViewer::ClimateViewerEngine geCoreExample::CoreExampleEngine geGIS::GlobeEngine geHikingViewer::HikingEngine geMeshExample::MeshExampleEngine gePlanetaryViewer::PlanetaryViewerEngine gePointCloudExample::PointCloudExampleEngine geSunExample::SunExampleEngine geTerrainExample::TerrainExampleEngine geTextureExample::TextureExampleEngine geVRExample::VRExampleEngine MobileCoreEngine

Public Types

enum  eTEXTURE_UNITS {
  eUNIT0, eUNIT1, eUNIT2, eUNIT3,
  eUNIT4, eUNIT5, eUNIT6, eUNIT7
}
 
enum  PICKINGSTATE { IDLE =0, PICKEVENT, PICKED }
 
enum  DEBUGSTATE { NOTACTIVE, ACTIVE }
 
enum  PROGRAMMSTATE { NOTLOADED, LOADED, RUNNING }
 

Public Member Functions

 Engine ()
 
 ~Engine ()
 
virtual void clear ()
 
virtual void create ()
 
virtual void initializeScene (std::string _initFilePath=0)=0
 
virtual void update ()=0
 
virtual void resize (int _w, int _h)=0
 
void draw ()
 
void initExtension ()
 
void setProgrammState (enum PROGRAMMSTATE state)
 
enum PROGRAMMSTATE getProgrammState ()
 
void setDebugState (enum DEBUGSTATE state)
 
enum DEBUGSTATE getDebugState ()
 
void enablePicking (bool _in)
 
bool isPickingEnabled ()
 
void enableWireframe (bool _in)
 
bool isWireframeEnabled ()
 
void enableAnimationLoop (bool _in)
 
bool isAnimationLoopEnabled ()
 
void setUIFramebufferID (unsigned int _id)
 
const std::shared_ptr< TextureHandle > & getUIFramebufferHandle ()
 
bool isUIFramebufferActive ()
 
void enableUIFramebuffer (bool _in=true)
 
void disableUIFramebuffer ()
 
int getCameraCount ()
 
std::shared_ptr< ge::CameragetCamera (int _index)
 
std::shared_ptr< ge::CameragetSelectedCam ()
 
int getSelectedCamID () const
 
void setSelectedCamID (int _id)
 
float getDevicePixelRatio ()
 
void setDevicePixelRatio (float _in)
 
double getElapsedTimeForLastFrame ()
 
void getOpenGLError (std::string const &_input)
 
void getOpenGLError (char const *_input)
 

Protected Member Functions

virtual void drawScene ()=0
 
void printLineRenderingInfo ()
 
void printTextureInfo ()
 
void printFramebufferInfo ()
 
void printBufferInformation ()
 

Protected Attributes

std::vector< std::shared_ptr< ge::Camera > > cameras
 
int selectedCameraID
 
enum PROGRAMMSTATE programstate
 Tells you the state of the application. More...
 
enum DEBUGSTATE debugstate
 Tells you if the application is running with debug output. More...
 
enum PICKINGSTATE pickingState
 Tells you if there is a picking event or result ongoing. More...
 
bool pickingEnabled
 
bool animationsEnabled
 

Member Enumeration Documentation

Enumerator
NOTACTIVE 

Debug mode not active

ACTIVE 

Debug mode active

Enumerator
eUNIT0 
eUNIT1 
eUNIT2 
eUNIT3 
eUNIT4 
eUNIT5 
eUNIT6 
eUNIT7 
Enumerator
IDLE 

No picking ongoing

PICKEVENT 

There is a pick event evaluated

PICKED 

There is a pick result available

Enumerator
NOTLOADED 

Application is not in draw loop yet.

LOADED 

Application has done initial loading.

RUNNING 

Application is running in draw loop.

Constructor & Destructor Documentation

ge::Engine::Engine ( )
ge::Engine::~Engine ( )

Member Function Documentation

void ge::Engine::disableUIFramebuffer ( )
void ge::Engine::draw ( )
void ge::Engine::enableAnimationLoop ( bool  _in)
void ge::Engine::enablePicking ( bool  _in)
void ge::Engine::enableUIFramebuffer ( bool  _in = true)
void ge::Engine::enableWireframe ( bool  _in)
std::shared_ptr< ge::Camera > ge::Engine::getCamera ( int  _index)
int ge::Engine::getCameraCount ( )
enum DEBUGSTATE ge::Engine::getDebugState ( )
inline
float ge::Engine::getDevicePixelRatio ( )
double ge::Engine::getElapsedTimeForLastFrame ( )

Frame time function

void ge::Engine::getOpenGLError ( std::string const &  _input)
inline
void ge::Engine::getOpenGLError ( char const *  _input)
inline
enum PROGRAMMSTATE ge::Engine::getProgrammState ( )
inline
std::shared_ptr< ge::Camera > ge::Engine::getSelectedCam ( )
int ge::Engine::getSelectedCamID ( ) const
const std::shared_ptr< TextureHandle > & ge::Engine::getUIFramebufferHandle ( )
void ge::Engine::initExtension ( )
bool ge::Engine::isAnimationLoopEnabled ( )
bool ge::Engine::isPickingEnabled ( )
bool ge::Engine::isUIFramebufferActive ( )
bool ge::Engine::isWireframeEnabled ( )
void ge::Engine::printBufferInformation ( )
protected
void ge::Engine::printFramebufferInfo ( )
protected
void ge::Engine::printLineRenderingInfo ( )
protected
void ge::Engine::printTextureInfo ( )
protected
void ge::Engine::setDebugState ( DEBUGSTATE  state)
void ge::Engine::setDevicePixelRatio ( float  _in)
void ge::Engine::setProgrammState ( PROGRAMMSTATE  state)
void ge::Engine::setSelectedCamID ( int  _id)
void ge::Engine::setUIFramebufferID ( unsigned int  _id)

Member Data Documentation

bool ge::Engine::animationsEnabled
protected
std::vector< std::shared_ptr<ge::Camera> > ge::Engine::cameras
protected

Camera objects

enum DEBUGSTATE ge::Engine::debugstate
protected

Tells you if the application is running with debug output.

bool ge::Engine::pickingEnabled
protected

Engine flags

enum PICKINGSTATE ge::Engine::pickingState
protected

Tells you if there is a picking event or result ongoing.

enum PROGRAMMSTATE ge::Engine::programstate
protected

Tells you the state of the application.

Basic state objects

int ge::Engine::selectedCameraID
protected

The documentation for this class was generated from the following files: