charcoal/OpenGLEngine/MyApplication.h

32 lines
555 B
C
Raw Normal View History

2018-09-04 19:25:54 +00:00
#pragma once
#include "Application.h"
#include "MySimpleScene.h"
#include "MyObjectOrientedScene.h"
#include "My3DScene.h"
2018-09-04 19:25:54 +00:00
class MyApplication :
public Application
{
public:
MyApplication(int width = -1, int height = -1);
protected:
void init() override;
2018-09-04 19:25:54 +00:00
void update(float delta_time, clock_t clock) override;
void render() override;
void close() override;
private:
void swap_scene(Scene* scene);
Scene* m_p_current_scene = nullptr;
MySimpleScene m_simple_scene;
MyObjectOrientedScene m_object_oriented_scene;
My3DScene m_3d_scene;
2018-09-04 19:25:54 +00:00
};