You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

77 lines
1.6 KiB

/*
* =====================================================================================
*
* Filename: testscene.h
*
* Description: Scene for testing. It's full of funky bullshit, and should not be
used for real things.
*
* Version: 1.0
* Created: 03/24/2014 11:02:55 PM
* Revision: none
* Compiler: gcc
*
* Author: YOUR NAME (),
* Organization:
*
* =====================================================================================
*/
#pragma once
#include "scene.h"
#include "graphics/camera.h"
#include "inputhandler.h"
#include "world.h"
#include "graphics/skybox.h"
#include "graphics/shader.h"
#include "nanovg.h"
#include <SDL2/SDL.h>
namespace vtk {
class Game;
class TestScene : public Scene {
public:
void init(); // Called first time the scene is set
void reInit(); // Called when switching from another scene
void update(const float& dTime); //Logic
void draw(); //Graphics
//Game functions
void look(); //look with camera
protected:
unsigned vertVBO;
unsigned texVBO;
unsigned vao;
unsigned shaders;
unsigned cursorShaders;
Shader mCursorShader;
float dTime;
float mFPS;
Camera camera;
SDL_Event event;
World world;
Skybox mSkybox;
RenderTask* mSkyboxTask;
NVGcontext* vg; //nanovg context
//stuff
float sensitivity;
glm::vec3 camMovement;
bool placeVoxel;
unsigned voxelType;
//controls
InputHandler handler;
//shader uniforms
int viewMatUni;
int projMatUni;
int modelMatUni;
};
}