From e62817b8252974b8a98393275874ee303840bf13 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Fri, 12 May 2017 18:49:50 +0500 Subject: 2017-05-12 --- graphics/Display.hpp | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) (limited to 'graphics/Display.hpp') diff --git a/graphics/Display.hpp b/graphics/Display.hpp index d6737ba..c656f2f 100644 --- a/graphics/Display.hpp +++ b/graphics/Display.hpp @@ -1,30 +1,32 @@ #pragma once -#include -#include -#include +#include #include "../World.hpp" - -template -class CallbackHandler { - -}; +#include +#include +#include +#include "Shader.hpp" +#include "Texture.hpp" +#include "Camera3D.hpp" class Display { - World *world; - GLFWwindow *window; - static Display *instance; - //glfw callbacks - static void callback_key(GLFWwindow *window, int key, int scancode, int action, int mode); + sf::Window *window; + World* world; + std::vector toRender; public: - Display(int w, int h, std::string title, World *worldPtr); + Display(unsigned int winWidth, unsigned int winHeight, const char winTitle[9], World *worldPtr); + + bool IsClosed(); - ~Display(); + void SetPlayerPos(double playerX, double playerY, double playerZ); void MainLoop(); - bool IsClosed(); - - void SetPlayerPos(float x, float y); -}; + unsigned int width() { + return window->getSize().x; + } + unsigned int height() { + return window->getSize().y; + } +}; \ No newline at end of file -- cgit v1.2.3