Berserk
|
Glfw window manager implementation. More...
#include <GlfwWindowManager.hpp>
Public Types | |
using | MakeContextCurrentFunc = std::function< void(const Ref< Window > &)> |
using | SwapBuffersFunc = std::function< void(const Ref< Window > &)> |
Public Member Functions | |
BRK_API | GlfwWindowManager (bool vsync, bool clientApi) |
BRK_API | ~GlfwWindowManager () override |
BRK_API Ref< Window > | CreateWindow (const StringName &name, const Size2i &size, const String &title) override |
CreateFromImage new OS native rendering window. More... | |
BRK_API Ref< Window > | GetPrimaryWindow () override |
BRK_API MakeContextCurrentFunc | GetMakeContextCurrentFunc () |
BRK_API SwapBuffersFunc | GetSwapBuffersFunc () |
![]() | |
virtual BRK_API | ~WindowManager ()=default |
Friends | |
class | Application |
Glfw window manager implementation.
using GlfwWindowManager::MakeContextCurrentFunc = std::function<void(const Ref<Window> &)> |
using GlfwWindowManager::SwapBuffersFunc = std::function<void(const Ref<Window> &)> |
BRK_NS_BEGIN GlfwWindowManager::GlfwWindowManager | ( | bool | vsync, |
bool | clientApi | ||
) |
|
override |
|
overridevirtual |
CreateFromImage new OS native rendering window.
Creates new window object with specified properties. Automatically initializes rendering context of window, so it is ready for actual rendering.
name | Unique name of the window in the engine |
size | Size of the window in units |
title | Window title to set |
Implements WindowManager.
GlfwWindowManager::MakeContextCurrentFunc GlfwWindowManager::GetMakeContextCurrentFunc | ( | ) |
Implements WindowManager.
GlfwWindowManager::SwapBuffersFunc GlfwWindowManager::GetSwapBuffersFunc | ( | ) |
|
friend |