Voxeloop  0.1.0
Musical Loop Generation in Voxel World
CoreEngine Class Reference

The underlying engine that handles everything underneath. More...

#include <CoreEngine.hpp>

Collaboration diagram for CoreEngine:
Collaboration graph

Public Member Functions

void init (const char *title, int width=640, int height=480, int bpp=0, bool fullscreen=false)
 
void cleanup ()
 
void changeState (StateMachine *state)
 
void pushState (StateMachine *state)
 
void popState ()
 
void handleEvents ()
 
void update ()
 
void draw ()
 
bool isRunning ()
 
void quit ()
 

Static Public Member Functions

static void key_callback (GLFWwindow *window, int key, int scancode, int action, int modes)
 

Private Attributes

std::vector< StateMachine * > states
 
bool m_isRunning
 
bool m_fullscreen
 
SharedDataRef m_sharedData
 
GLFWwindow * m_window
 

Detailed Description

The underlying engine that handles everything underneath.

Member Function Documentation

◆ changeState()

void CoreEngine::changeState ( StateMachine state)

◆ cleanup()

void CoreEngine::cleanup ( )

◆ draw()

void CoreEngine::draw ( )

◆ handleEvents()

void CoreEngine::handleEvents ( )

◆ init()

void CoreEngine::init ( const char *  title,
int  width = 640,
int  height = 480,
int  bpp = 0,
bool  fullscreen = false 
)

◆ isRunning()

bool CoreEngine::isRunning ( )
inline

◆ key_callback()

void CoreEngine::key_callback ( GLFWwindow *  window,
int  key,
int  scancode,
int  action,
int  modes 
)
static

◆ popState()

void CoreEngine::popState ( )

◆ pushState()

void CoreEngine::pushState ( StateMachine state)

◆ quit()

void CoreEngine::quit ( )
inline

◆ update()

void CoreEngine::update ( )

Member Data Documentation

◆ m_fullscreen

bool CoreEngine::m_fullscreen
private

◆ m_isRunning

bool CoreEngine::m_isRunning
private

◆ m_sharedData

SharedDataRef CoreEngine::m_sharedData
private

◆ m_window

GLFWwindow* CoreEngine::m_window
private

◆ states

std::vector<StateMachine *> CoreEngine::states
private

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