charcoal/OpenGLEngine/MyApplication.h

27 lines
448 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"
2018-09-04 19:25:54 +00:00
class MyApplication :
public Application
{
public:
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;
2018-09-04 19:25:54 +00:00
};