5 #include <ThirdParty/EASTL-master/include/EASTL/string.h> 6 #include <ThirdParty/EASTL-master/include/EASTL/shared_ptr.h> 11 #define GLFW_EXPOSE_NATIVE_WIN32 12 #define GLFW_EXPOSE_NATIVE_WGL 13 #define GLFW_INCLUDE_NONE 15 #include <ThirdParty/glfw-3.2.1/x64/include/GLFW/glfw3.h> 16 #include <ThirdParty/glfw-3.2.1/x64/include/GLFW/glfw3native.h> 18 #include <ThirdParty/glfw-3.2.1/x86/include/GLFW/glfw3.h> 19 #include <ThirdParty/glfw-3.2.1/x86/include/GLFW/glfw3native.h> 38 static void OnWindowResized(GLFWwindow* window,
int width,
int height);
44 bool ShouldClose()
const noexcept;
51 void SetShouldClose(
bool value)
const noexcept;
57 HWND GetWindowHandle()
const noexcept;
63 eastl::weak_ptr<GLFWwindow> GetGLFWWindow()
const noexcept;
69 eastl::string GetTitle()
const;
75 int GetWidth()
const noexcept;
81 int GetDisplayWidth()
const noexcept;
87 int GetHeight()
const noexcept;
93 int GetDisplayHeight()
const noexcept;
98 eastl::shared_ptr<GLFWwindow>
window;
104 friend class OpenGLWindow;
107 friend class VulkanWindow;
111 Window(
int width,
int height,
const char* title) noexcept;
115 virtual ~
Window() noexcept;
125 void Update() const noexcept;
129 friend class OpenGLRenderer;
132 friend class VulkanRenderer;
134 void SwapBuffers() const noexcept;
144 void SetWidth(
int newWidth);
149 void SetHeight(
int newHeight);
eastl::shared_ptr< GLFWwindow > window
This object stores any information regarding the created GLFW window.
This is the main renderer parent class which contains the base methods required for a renderer...