2D_Game_Engine
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
window.cpp File Reference
#include <pch.hpp>
#include <window.hpp>
#include <buttons.hpp>
#include <texturesmanager.hpp>
#include <fontmanager.hpp>
#include <textqueue.hpp>

Go to the source code of this file.

Namespaces

namespace  Window
 

Functions

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)
 
void Window::GetMousePos (double *x, double *y)
 
void Window::ShowMetrics ()
 
int Window::InitGlfwWindow (const char *window_name, bool resizable)
 
void Window::DeinitGlfwWindow ()
 
void Window::ToggleFullScreen ()
 
void Window::ToggleVSync ()
 
void Window::SetResizable (bool resizable)
 
int Window::parseLine (char *line)
 
int Window::getMemInfoValue (const char *value)
 
int Window::getStatusValue (const char *value)
 
void Window::PrintDebugInfo ()
 
bool Window::GetKeyState (int key, int state)
 
bool Window::GetMouseButtonState (int button, int state)
 

Variables

bool ISFULLSCREEN =false
 
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.
 

Variable Documentation

◆ FONT_MANAGER

FontManager* FONT_MANAGER

The font manager.

Definition at line 16 of file window.cpp.

◆ INPUT

Input* INPUT

The input manager.

Definition at line 14 of file window.cpp.

◆ ISFULLSCREEN

bool ISFULLSCREEN =false

Definition at line 11 of file window.cpp.

◆ RENDERER

Renderer* RENDERER

The main renderer.

Definition at line 12 of file window.cpp.

◆ TEXT_QUEUE

TextQueue* TEXT_QUEUE

The text queue.

Definition at line 17 of file window.cpp.

◆ TEXT_RENDERER

TextRenderer* TEXT_RENDERER

The text renderers.

Definition at line 13 of file window.cpp.

◆ TEXTURES_MANAGER

TexturesManager* TEXTURES_MANAGER

The textures manager.

Definition at line 15 of file window.cpp.