charcoal/OpenGLEngine/MyApplication.h

44 lines
917 B
C
Raw Normal View History

2018-09-04 19:25:54 +00:00
#pragma once
#include "Application.h"
2018-09-11 05:18:17 +00:00
#include "MyBasicScene.h"
#include "MySimple2DScene.h"
#include "MySimple3DScene.h"
#include "MySimpleCubeScene.h"
#include "MyBuiltinCubeScene.h"
2018-09-14 22:09:43 +00:00
#include "MyBuiltinLitScene.h"
#include "MyBuiltinTexturedScene.h"
2018-09-04 19:25:54 +00:00
2018-09-12 21:03:46 +00:00
using namespace charcoal;
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 prerender() override;
2018-09-04 19:25:54 +00:00
void render() override;
void close() override;
private:
void swap_scene(Scene* scene);
Scene* m_p_current_scene = nullptr;
2018-09-11 05:18:17 +00:00
MyBasicScene m_basic_scene;
MySimple2DScene m_simple_2d_scene;
MySimple3DScene m_simple_3d_scene;
MySimpleCubeScene m_simple_cube_scene;
MyBuiltinCubeScene m_builtin_basic_cube_scene;
2018-09-14 22:09:43 +00:00
MyBuiltinLitScene m_builtin_lit_scene;
MyBuiltinTexturedScene m_builtin_textured_scene;
2018-09-04 19:25:54 +00:00
};