SDEngine
Game Engine
Loading...
Searching...
No Matches
sd::GlfwContext Class Reference

RAII wrapper for initializing and terminating Glfw. Also sets a glfwErrorCallback. More...

#include <GlfwContext.hpp>

Public Member Functions

 GlfwContext ()
 
 GlfwContext (const GlfwContext &)=delete
 
GlfwContextoperator= (const GlfwContext &)=delete
 
 GlfwContext (GlfwContext &&)=delete
 
GlfwContextoperator= (GlfwContext &&)=delete
 
 ~GlfwContext ()
 

Static Public Member Functions

static void set_error_callback (const glfw_error_callback &callback)
 
static std::pair< const char **, uint32_tget_required_instance_extensions ()
 

Static Private Member Functions

static void glfw_error_callback_trampoline (int error_code, const char *description)
 

Static Private Attributes

static glfw_error_callback m_error_callback
 

Detailed Description

RAII wrapper for initializing and terminating Glfw. Also sets a glfwErrorCallback.

Constructor & Destructor Documentation

◆ GlfwContext() [1/3]

sd::GlfwContext::GlfwContext ( )
inline

◆ GlfwContext() [2/3]

sd::GlfwContext::GlfwContext ( const GlfwContext )
delete

◆ GlfwContext() [3/3]

sd::GlfwContext::GlfwContext ( GlfwContext &&  )
delete

◆ ~GlfwContext()

sd::GlfwContext::~GlfwContext ( )
inline

Member Function Documentation

◆ get_required_instance_extensions()

static std::pair< const char **, uint32_t > sd::GlfwContext::get_required_instance_extensions ( )
inlinestatic

◆ glfw_error_callback_trampoline()

static void sd::GlfwContext::glfw_error_callback_trampoline ( int  error_code,
const char description 
)
inlinestaticprivate

◆ operator=() [1/2]

GlfwContext & sd::GlfwContext::operator= ( const GlfwContext )
delete

◆ operator=() [2/2]

GlfwContext & sd::GlfwContext::operator= ( GlfwContext &&  )
delete

◆ set_error_callback()

static void sd::GlfwContext::set_error_callback ( const glfw_error_callback callback)
inlinestatic

Overides the default error callback for Glfw

Parameters
callback

Member Data Documentation

◆ m_error_callback

glfw_error_callback sd::GlfwContext::m_error_callback
inlinestaticprivate

The documentation for this class was generated from the following file: