2018-09-04 19:25:54 +00:00
|
|
|
#pragma once
|
|
|
|
#include "Application.h"
|
|
|
|
|
|
|
|
#include "MySimpleScene.h"
|
2018-09-05 23:10:38 +00:00
|
|
|
#include "MyObjectOrientedScene.h"
|
2018-09-10 01:20:56 +00:00
|
|
|
#include "My3DScene.h"
|
2018-09-04 19:25:54 +00:00
|
|
|
|
|
|
|
class MyApplication :
|
|
|
|
public Application
|
|
|
|
{
|
|
|
|
public:
|
2018-09-08 04:06:10 +00:00
|
|
|
MyApplication(int width = -1, int height = -1);
|
|
|
|
|
2018-09-05 15:47:09 +00:00
|
|
|
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:
|
2018-09-05 23:10:38 +00:00
|
|
|
void swap_scene(Scene* scene);
|
|
|
|
|
|
|
|
Scene* m_p_current_scene = nullptr;
|
|
|
|
MySimpleScene m_simple_scene;
|
|
|
|
MyObjectOrientedScene m_object_oriented_scene;
|
2018-09-10 01:20:56 +00:00
|
|
|
My3DScene m_3d_scene;
|
2018-09-04 19:25:54 +00:00
|
|
|
};
|
|
|
|
|