|
PGR Copakond OpenGL Engine - Bowling
|
Base class for all game scenes, managing lifecycle, rendering, and scene entities. More...
#include <scene.h>
Public Member Functions | |
| Scene (const char *sceneName, Input *engineInput, Shader *engineShader, int winWidth, int winHeight) | |
| virtual | ~Scene ()=default |
| const std::vector< Mesh * > & | getMeshes () const |
| const std::vector< Light * > & | getLights () const |
| const std::vector< Spline * > & | getSplines () const |
| const std::vector< CollisionShape * > & | getColliders () const |
| Skybox * | getSkybox () const |
| Light * | getSun () const |
| Camera & | getCamera () |
| Shader * | getShader () const |
| Input * | getInput () const |
| float | updateTime () |
| Calculates delta time since the last frame. | |
| float | getSkyboxBlendingCoeff () |
| const char * | getSceneName () |
| virtual void | init () |
| virtual void | update (float deltaTime) |
| virtual void | physics_update (float deltaTime) |
| Fixed-step physics update loop for resolving collisions and forces. | |
| virtual void | onKeyboardEvent (unsigned char key, int x, int y, bool isDown) |
| virtual void | onMouseButtonEvent (int button, int state, int x, int y) |
| virtual void | onMouseWheelEvent (int wheel, int direction, int x, int y) |
| virtual void | onMouseMoveEvent (int x, int y) |
| virtual void | onScreenResizeEvent (int width, int height) |
| Handles viewport and projection matrix updates on window resize. | |
| virtual void | onMenuEvent (int option) |
Protected Member Functions | |
| void | addToScene (Mesh *mesh) |
| void | addToScene (Light *light) |
| void | addToScene (Spline *spline) |
Protected Attributes | |
| const char * | WIN_TITLE |
| Input * | input |
| Shader * | shader |
| Camera * | camera |
| std::vector< Mesh * > | meshes = std::vector<Mesh*>() |
| std::vector< Light * > | lights = std::vector<Light*>() |
| std::vector< Spline * > | splines = std::vector<Spline*>() |
| std::vector< CollisionShape * > | colliders = std::vector<CollisionShape*>() |
| Light * | sun = nullptr |
| Skybox * | skybox = nullptr |
| uint64_t | time = 0 |
| int | winWidth = 0 |
| int | winHeight = 0 |
| float | skyboxBlendingCoeff = 0.0f |
Base class for all game scenes, managing lifecycle, rendering, and scene entities.
|
inline |
|
virtualdefault |
|
protected |
|
protected |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in copakond::BowlingScene, copakond::SampleScene, and copakond::TemplateScene.
|
inlinevirtual |
Reimplemented in copakond::BowlingScene, copakond::SampleScene, and copakond::TemplateScene.
|
inlinevirtual |
Reimplemented in copakond::BowlingScene, copakond::SampleScene, and copakond::TemplateScene.
|
inlinevirtual |
Reimplemented in copakond::BowlingScene, copakond::SampleScene, and copakond::TemplateScene.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in copakond::BowlingScene, copakond::SampleScene, and copakond::TemplateScene.
|
inlinevirtual |
Handles viewport and projection matrix updates on window resize.
|
inlinevirtual |
Fixed-step physics update loop for resolving collisions and forces.
Reimplemented in copakond::BowlingScene, copakond::SampleScene, and copakond::TemplateScene.
|
inlinevirtual |
Reimplemented in copakond::BowlingScene, copakond::SampleScene, and copakond::TemplateScene.
| float copakond::Scene::updateTime | ( | ) |
Calculates delta time since the last frame.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |