charcoal/OpenGLEngine/MyApplication.h
Elipzer 90bac19849 3D Cube
Finally got a 3D cube to be rendered. While doing it, fixed a
bug in MeshFactory that caused it to allocate the incorrect amount
of memory for each mesh.
2018-09-11 16:49:34 -04:00

34 lines
624 B
C++

#pragma once
#include "Application.h"
#include "MyBasicScene.h"
#include "MySimple2DScene.h"
#include "MySimple3DScene.h"
#include "MySimpleCubeScene.h"
class MyApplication :
public Application
{
public:
MyApplication(int width = -1, int height = -1);
protected:
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;
MyBasicScene m_basic_scene;
MySimple2DScene m_simple_2d_scene;
MySimple3DScene m_simple_3d_scene;
MySimpleCubeScene m_simple_cube_scene;
};