charcoal/OpenGLEngine/Scene.h

25 lines
494 B
C
Raw Normal View History

2018-09-04 19:25:54 +00:00
#pragma once
#include <time.h>
class Scene
{
public:
2018-09-05 06:49:02 +00:00
virtual ~Scene() { };
2018-09-04 19:25:54 +00:00
// Called when the scene is going to be used
// Should allocate all graphics memory.
virtual void use() = 0;
// Called when the scene is no longer going to be used
// Should release all graphics memory
virtual void unuse() = 0;
// Called when the frame is being updated
virtual void update(float delta_time, clock_t clock) = 0;
// Called when the frame is being rendered
virtual void render() = 0;
};