Saga
Saga Game Engine
Loading...
Searching...
No Matches
Saga::Core Class Reference

A wrapper around App that separates it from Window, the script running the game loop. This receives user events and pass them along to App. More...

#include <core.h>

Public Member Functions

 Core ()
 
 ~Core ()
 
void update (double deltaTime, double time)
 
void fixedupdate (double fixedDeltaTime, double time)
 
void draw ()
 
void keyEvent (int key, int action)
 
void mousePosEvent (double xpos, double ypos)
 
void mouseButtonEvent (int button, int action)
 
void scrollEvent (double distance)
 
void windowResizeEvent (int width, int height)
 
void framebufferResizeEvent (int width, int height)
 

Detailed Description

A wrapper around App that separates it from Window, the script running the game loop. This receives user events and pass them along to App.

Constructor & Destructor Documentation

◆ Core()

Saga::Core::Core ( )
Here is the call graph for this function:

◆ ~Core()

Saga::Core::~Core ( )
Here is the call graph for this function:

Member Function Documentation

◆ draw()

void Saga::Core::draw ( )

◆ fixedupdate()

void Saga::Core::fixedupdate ( double  fixedDeltaTime,
double  time 
)

◆ framebufferResizeEvent()

void Saga::Core::framebufferResizeEvent ( int  width,
int  height 
)

◆ keyEvent()

void Saga::Core::keyEvent ( int  key,
int  action 
)

◆ mouseButtonEvent()

void Saga::Core::mouseButtonEvent ( int  button,
int  action 
)

◆ mousePosEvent()

void Saga::Core::mousePosEvent ( double  xpos,
double  ypos 
)

◆ scrollEvent()

void Saga::Core::scrollEvent ( double  distance)

◆ update()

void Saga::Core::update ( double  deltaTime,
double  time 
)
Here is the call graph for this function:

◆ windowResizeEvent()

void Saga::Core::windowResizeEvent ( int  width,
int  height 
)

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