3#include "common/types/OpenGLTypes.h"
4#include "utils/Error.h"
5#include "core/renderer/FrameBuffer.h"
6#include "editor/RenderingInterface.h"
7#include "common/maths/Vec.h"
19 int m_Width, m_Height;
20 float m_ViewportWidth, m_ViewportHeight;
26 Window(
int width,
int height,
const char* title);
38 static Window*
Init(
int width,
int height,
const char* title);
43 int GetWidth()
const {
return m_Width; }
44 int GetHeight()
const {
return m_Height; }
45 GLFWwindow* GetGLFWWindow()
const {
return m_Window; }
46 float GetAspectRatio()
const {
return (
float)m_Width / (float)m_Height; }
56 float GetViewportWidth() {
return m_ViewportWidth; }
57 float GetViewportHeight() {
return m_ViewportHeight; }
Handles the creation and management of a frame buffer.
RenderingInterface class.
A class that represents a window and is wrapper of GLFWwindow.
void SetRenderingInterface(RenderingInterface *renderingInterface)
Sets the rendering interface.
static Window * Init(int width, int height, const char *title)
Initializes the window.