[testing] shader ddoesnt work, still on it

This commit is contained in:
Lars
2021-05-28 12:08:12 +02:00
parent 51cdc520e0
commit 93b3223737
11 changed files with 259 additions and 27 deletions

34
src/scenes/scene.h Normal file
View File

@@ -0,0 +1,34 @@
#pragma once
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <map>
namespace scene {
class Scene
{
public:
virtual void start() = 0;
virtual void render() = 0;
virtual void update() = 0;
virtual void onKey(int key, int scancode, int action, int mods) {};
};
enum class Scenes
{
STARTUP,
INGAME,
GAMEOVER,
CALIBRATION
};
extern std::map<Scenes, Scene*> scenes;
extern Scene* current_scene;
extern GLFWwindow* window;
}