2D_Game_Engine
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
window.hpp File Reference
#include <renderer.hpp>
#include <textrenderer.hpp>
#include <input.hpp>
#include <texturesmanager.hpp>
#include <fontmanager.hpp>
#include <textqueue.hpp>

Go to the source code of this file.

Namespaces

namespace  Window
 

Functions

int Window::InitGlfwWindow (const char *window_name, bool resizable)
 
void Window::DeinitGlfwWindow ()
 
void Window::ToggleFullScreen ()
 
void Window::ToggleVSync ()
 
void Window::SetResizable (bool resizable)
 
bool Window::GetKeyState (int key, int state)
 
bool Window::GetMouseButtonState (int button, int state)
 
void Window::GetMousePos (double *x, double *y)
 
void Window::ShowMetrics ()
 
void Window::PrintDebugInfo ()
 
void GLAPIENTRY Window::MessageCallback (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void *userParam)
 
void GLAPIENTRY Window::FramebufferSizeCallback (GLFWwindow *window, int width, int height)
 
void GLAPIENTRY Window::ErrorCallback (int error, const char *description)
 
ApplicationWindow::CreateApplication ()
 

Variables

bool ISFULLSCREEN
 
RendererRENDERER
 The main renderer.
 
TextRendererTEXT_RENDERER
 The text renderers.
 
InputINPUT
 The input manager.
 
TexturesManagerTEXTURES_MANAGER
 The textures manager.
 
FontManagerFONT_MANAGER
 The font manager.
 
TextQueueTEXT_QUEUE
 The text queue.
 
GLFWwindow * Window::Window
 
float Window::Width
 
float Window::Height
 
float Window::BaseWidth
 
float Window::BaseHeight
 
float Window::FullscreenWidth
 
float Window::FullscreenHeight
 
float Window::FPS
 
float Window::CurrentFrameTime
 
float Window::LastFrameTime
 
float Window::DeltaTime
 
float Window::Alpha
 
bool Window::IsFullscreen
 
bool Window::IsVSync
 
bool Window::ShowMetrics_
 
bool Window::FramebufferUpdate =false
 
bool Window::ProjUpdate =false
 
bool Window::TextProjUpdate =false
 
const float Window::MAX_WIDTH =10.0f
 
float Window::MAX_HEIGHT
 

Variable Documentation

◆ FONT_MANAGER

FontManager* FONT_MANAGER
extern

The font manager.

Definition at line 16 of file window.cpp.

◆ INPUT

Input* INPUT
extern

The input manager.

Definition at line 14 of file window.cpp.

◆ ISFULLSCREEN

bool ISFULLSCREEN
extern

Definition at line 11 of file window.cpp.

◆ RENDERER

Renderer* RENDERER
extern

The main renderer.

Definition at line 12 of file window.cpp.

◆ TEXT_QUEUE

TextQueue* TEXT_QUEUE
extern

The text queue.

Definition at line 17 of file window.cpp.

◆ TEXT_RENDERER

TextRenderer* TEXT_RENDERER
extern

The text renderers.

Definition at line 13 of file window.cpp.

◆ TEXTURES_MANAGER

TexturesManager* TEXTURES_MANAGER
extern

The textures manager.

Definition at line 15 of file window.cpp.