Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
EngineCore::Window Class Reference

#include <Window.h>

Public Member Functions

 Window (std::weak_ptr< InputHandler > inputHandler, GLFWframebuffersizefun windowResizeCallback)
void setupInputHandler (const std::weak_ptr< InputHandler > &inputHandler)
void createSurface (VkInstance instance, VkSurfaceKHR &surface)
GLFWwindow * getWindowInstance () const
void cleanup ()

Private Attributes

GLFWwindow * window

Detailed Description

Definition at line 11 of file Window.h.

Constructor & Destructor Documentation

◆ Window()

EngineCore::Window::Window ( std::weak_ptr< InputHandler > inputHandler,
GLFWframebuffersizefun windowResizeCallback )

Definition at line 10 of file Window.cpp.

References EngineCore::EngineManager::getEngineModule(), EngineCore::EngineManager::getInstance(), INITIAL_WINDOW_HEIGHT, INITIAL_WINDOW_WIDTH, setupInputHandler(), and window.

Here is the call graph for this function:

Member Function Documentation

◆ cleanup()

void EngineCore::Window::cleanup ( )

Definition at line 53 of file Window.cpp.

References window.

◆ createSurface()

void EngineCore::Window::createSurface ( VkInstance instance,
VkSurfaceKHR & surface )

Definition at line 43 of file Window.cpp.

References window.

◆ getWindowInstance()

GLFWwindow * EngineCore::Window::getWindowInstance ( ) const

Definition at line 49 of file Window.cpp.

References window.

◆ setupInputHandler()

void EngineCore::Window::setupInputHandler ( const std::weak_ptr< InputHandler > & inputHandler)

Definition at line 36 of file Window.cpp.

Referenced by Window().

Here is the caller graph for this function:

Member Data Documentation

◆ window

GLFWwindow* EngineCore::Window::window
private

Definition at line 23 of file Window.h.

Referenced by cleanup(), createSurface(), getWindowInstance(), and Window().


The documentation for this class was generated from the following files:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Core/Window.h
  • /home/magerbeton/Documents/gl3-vulkan/Engine/src/Engine/Core/Window.cpp