a8c4b05d2f
This commit gets creates the ObjectOriented scene and gets it working. The current test program swaps a triangle from small to large with the 1 and 2 keys on the keyboard. (1 for small and 2 for large). The small triangle is rendered by the simple scene and the large one is rendered by the object oriented one.
27 lines
448 B
C++
27 lines
448 B
C++
#pragma once
|
|
#include "Application.h"
|
|
|
|
#include "MySimpleScene.h"
|
|
#include "MyObjectOrientedScene.h"
|
|
|
|
class MyApplication :
|
|
public Application
|
|
{
|
|
public:
|
|
void init() override;
|
|
|
|
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;
|
|
};
|
|
|