matf-rg-engine 1.0.0
Base for project for the Computer Graphics course at Faculty of Mathematics, University of Belgrade
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
PlatformController.cpp File Reference
#include <imgui.h>
#include <imgui_impl_glfw.h>
#include <imgui_impl_opengl3.h>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <engine/platform/PlatformController.hpp>
#include <engine/util/Utils.hpp>
#include <spdlog/spdlog.h>
#include <utility>
#include <engine/graphics/OpenGL.hpp>
#include <engine/util/Configuration.hpp>
#include "glfw_key_mapping.include"
#include "engine_key_to_string.include"
Include dependency graph for PlatformController.cpp:

Namespaces

namespace  engine
 
namespace  engine::platform
 

Functions

static void engine::platform::glfw_mouse_callback (GLFWwindow *window, double x, double y)
 
static void engine::platform::glfw_scroll_callback (GLFWwindow *window, double x_offset, double y_offset)
 
static void engine::platform::glfw_key_callback (GLFWwindow *window, int key, int scancode, int action, int mods)
 
static void engine::platform::glfw_framebuffer_size_callback (GLFWwindow *window, int width, int height)
 
static void engine::platform::glfw_window_close_callback (GLFWwindow *window)
 
static void engine::platform::glfw_mouse_button_callback (GLFWwindow *window, int button, int action, int mods)
 
static int engine::platform::glfw_platform_action (GLFWwindow *window, int glfw_key_code)
 
void engine::platform::initialize_key_maps ()
 

Variables

static std::array< std::string_view, KEY_COUNTengine::platform::g_engine_key_to_string
 
static std::array< int, KEY_COUNTengine::platform::g_engine_to_glfw_key
 
static std::array< KeyId, GLFW_KEY_LAST+1 > engine::platform::g_glfw_key_to_engine
 
static MousePosition engine::platform::g_mouse_position