Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Grindstone::GlfwWindow Class Reference
Inheritance diagram for Grindstone::GlfwWindow:
Grindstone::Window

Public Member Functions

virtual bool Initialize (CreateInfo &createInfo) override
virtual void Show () override
virtual void Hide () override
virtual bool ShouldClose () override
virtual void HandleEvents () override
virtual void SetFullscreen (FullscreenMode mode) override
virtual void GetWindowRect (unsigned int &left, unsigned int &top, unsigned int &right, unsigned int &bottom) const override
virtual void GetWindowSize (unsigned int &width, unsigned int &height) const override
virtual void SetWindowSize (unsigned int width, unsigned int height) override
virtual void SetMousePos (unsigned int x, unsigned int y) override
virtual void GetMousePos (unsigned int &x, unsigned int &y) const override
virtual void SetCursorMode (Grindstone::Input::CursorMode cursorMode) override
virtual Grindstone::Input::CursorMode GetCursorMode () const override
virtual void SetMouseIsRawMotion (bool isRawMotion) override
virtual bool GetMouseIsRawMotion () const override
virtual void SetWindowPos (unsigned int x, unsigned int y) override
virtual void GetWindowPos (unsigned int &x, unsigned int &y) const override
virtual bool GetWindowFocus () const override
virtual void SetWindowFocus (bool isFocused) override
virtual bool GetWindowMinimized () const override
virtual void GetTitle (char *allocatedBuffer) const override
virtual void SetTitle (const char *title) override
virtual void SetWindowAlpha (float alpha) override
virtual float GetWindowDpiScale () const override
virtual void Close () override
virtual void OnSwapchainResized (int width, int height)
virtual bool CopyStringToClipboard (const std::string &stringToCopy) override
virtual std::filesystem::path BrowseFolder (std::filesystem::path &defaultPath) override
virtual std::filesystem::path OpenFileDialogue (const char *filter) override
virtual std::filesystem::path SaveFileDialogue (const char *filter) override
virtual void ExplorePath (const char *path) override
virtual void OpenFileUsingDefaultProgram (const char *path) override
virtual GLFWwindow * GetHandle () const
Public Member Functions inherited from Grindstone::Window
Grindstone::GraphicsAPI::WindowGraphicsBindingGetWindowGraphicsBinding () const
void AddBinding (Grindstone::GraphicsAPI::WindowGraphicsBinding *wgb)
void ImmediateSetContext ()
void ImmediateSwapBuffers ()
bool IsSwapchainControlledByEngine () const

Public Attributes

EngineCoreengineCore = nullptr

Additional Inherited Members

Public Types inherited from Grindstone::Window
enum class  FullscreenMode { Windowed = 0 , Borderless , Fullscreen }
Static Public Member Functions inherited from Grindstone::Window
static Grindstone::WindowCreate (CreateInfo &createInfo)
Protected Attributes inherited from Grindstone::Window
Grindstone::GraphicsAPI::WindowGraphicsBindingwindowsGraphicsBinding = nullptr
bool isSwapchainControlledByEngine

Member Function Documentation

◆ BrowseFolder()

std::filesystem::path GlfwWindow::BrowseFolder ( std::filesystem::path & defaultPath)
overridevirtual

Implements Grindstone::Window.

◆ Close()

void GlfwWindow::Close ( )
overridevirtual

Implements Grindstone::Window.

◆ CopyStringToClipboard()

bool GlfwWindow::CopyStringToClipboard ( const std::string & stringToCopy)
overridevirtual

Implements Grindstone::Window.

◆ ExplorePath()

void GlfwWindow::ExplorePath ( const char * path)
overridevirtual

Implements Grindstone::Window.

◆ GetCursorMode()

Grindstone::Input::CursorMode GlfwWindow::GetCursorMode ( ) const
overridevirtual

Implements Grindstone::Window.

◆ GetMouseIsRawMotion()

bool GlfwWindow::GetMouseIsRawMotion ( ) const
overridevirtual

Implements Grindstone::Window.

◆ GetMousePos()

void GlfwWindow::GetMousePos ( unsigned int & x,
unsigned int & y ) const
overridevirtual

Implements Grindstone::Window.

◆ GetTitle()

void GlfwWindow::GetTitle ( char * allocatedBuffer) const
overridevirtual

Implements Grindstone::Window.

◆ GetWindowDpiScale()

float GlfwWindow::GetWindowDpiScale ( ) const
overridevirtual

Implements Grindstone::Window.

◆ GetWindowFocus()

bool GlfwWindow::GetWindowFocus ( ) const
overridevirtual

Implements Grindstone::Window.

◆ GetWindowMinimized()

bool GlfwWindow::GetWindowMinimized ( ) const
overridevirtual

Implements Grindstone::Window.

◆ GetWindowPos()

void GlfwWindow::GetWindowPos ( unsigned int & x,
unsigned int & y ) const
overridevirtual

Implements Grindstone::Window.

◆ GetWindowRect()

void GlfwWindow::GetWindowRect ( unsigned int & left,
unsigned int & top,
unsigned int & right,
unsigned int & bottom ) const
overridevirtual

Implements Grindstone::Window.

◆ GetWindowSize()

void GlfwWindow::GetWindowSize ( unsigned int & width,
unsigned int & height ) const
overridevirtual

Implements Grindstone::Window.

◆ HandleEvents()

void GlfwWindow::HandleEvents ( )
overridevirtual

Implements Grindstone::Window.

◆ Hide()

void GlfwWindow::Hide ( )
overridevirtual

Implements Grindstone::Window.

◆ Initialize()

bool GlfwWindow::Initialize ( CreateInfo & createInfo)
overridevirtual

Implements Grindstone::Window.

◆ OpenFileDialogue()

std::filesystem::path GlfwWindow::OpenFileDialogue ( const char * filter)
overridevirtual

Implements Grindstone::Window.

◆ OpenFileUsingDefaultProgram()

void GlfwWindow::OpenFileUsingDefaultProgram ( const char * path)
overridevirtual

Implements Grindstone::Window.

◆ SaveFileDialogue()

std::filesystem::path GlfwWindow::SaveFileDialogue ( const char * filter)
overridevirtual

Implements Grindstone::Window.

◆ SetCursorMode()

void GlfwWindow::SetCursorMode ( Grindstone::Input::CursorMode cursorMode)
overridevirtual

Implements Grindstone::Window.

◆ SetFullscreen()

void GlfwWindow::SetFullscreen ( FullscreenMode mode)
overridevirtual

Implements Grindstone::Window.

◆ SetMouseIsRawMotion()

void GlfwWindow::SetMouseIsRawMotion ( bool isRawMotion)
overridevirtual

Implements Grindstone::Window.

◆ SetMousePos()

void GlfwWindow::SetMousePos ( unsigned int x,
unsigned int y )
overridevirtual

Implements Grindstone::Window.

◆ SetTitle()

void GlfwWindow::SetTitle ( const char * title)
overridevirtual

Implements Grindstone::Window.

◆ SetWindowAlpha()

void GlfwWindow::SetWindowAlpha ( float alpha)
overridevirtual

Implements Grindstone::Window.

◆ SetWindowFocus()

void GlfwWindow::SetWindowFocus ( bool isFocused)
overridevirtual

Implements Grindstone::Window.

◆ SetWindowPos()

void GlfwWindow::SetWindowPos ( unsigned int x,
unsigned int y )
overridevirtual

Implements Grindstone::Window.

◆ SetWindowSize()

void GlfwWindow::SetWindowSize ( unsigned int width,
unsigned int height )
overridevirtual

Implements Grindstone::Window.

◆ ShouldClose()

bool GlfwWindow::ShouldClose ( )
overridevirtual

Implements Grindstone::Window.

◆ Show()

void GlfwWindow::Show ( )
overridevirtual

Implements Grindstone::Window.


The documentation for this class was generated from the following files:
  • /github/workspace/sources/code/Common/Window/GlfwWindow.hpp
  • /github/workspace/sources/code/Common/Window/GlfwWindow.cpp