[testing] shader ddoesnt work, still on it
This commit is contained in:
35
src/scenes/startup_Scene.cpp
Normal file
35
src/scenes/startup_Scene.cpp
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user