123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- /*
- * =====================================================================================
- *
- * 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 <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;
- Camera camera;
- SDL_Event event;
- World world;
- Skybox mSkybox;
- RenderTask* mSkyboxTask;
-
-
- //stuff
- float sensitivity;
- glm::vec3 camMovement;
- bool placeVoxel;
- unsigned voxelType;
-
- //controls
- InputHandler handler;
-
- //shader uniforms
- int viewMatUni;
- int projMatUni;
- int modelMatUni;
- };
- }
|