[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

View File

@@ -0,0 +1,35 @@
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <map>
#include "startup_Scene.h"
namespace scene
{
std::map<Scenes, Scene*> scenes;
Scene* current_scene;
GLFWwindow* window;
void scene::Startup_Scene::start()
{
}
void scene::Startup_Scene::render()
{
}
void scene::Startup_Scene::update()
{
}
void scene::Startup_Scene::onKey(int key, int scancode, int action, int mods)
{
if (glfwGetKey(window, GLFW_KEY_SPACE) == GLFW_PRESS)
{
current_scene = scenes[Scenes::INGAME];
current_scene->start();
}
}
}