Nebula
Loading...
Searching...
No Matches
GLFW Namespace Reference

Classes

class  GLFWDisplayDevice
class  GLFWGamePad
 One game pad, read through GLFW. More...
class  GLFWInputServer

Functions

 __ImplementClass (GLFW::GLFWGamePad, 'GPGP', Base::GamePadBase)
 __ImplementClass (GLFW::GLFWInputServer, 'GLIS', Base::InputServerBase)
 __ImplementSingleton (GLFW::GLFWInputServer)
 __ImplementClass (GLFW::GLFWDisplayDevice, 'O4WD', Base::DisplayDeviceBase)
 __ImplementSingleton (GLFW::GLFWDisplayDevice)
bool MatchPixelFormat (PixelFormat::Code format, const GLFWvidmode &mode)
Input::Modifier::Code ModsFromGlfw (int flags, Input::Key::Code key)
void KeyFunc (const CoreGraphics::WindowId &id, int key, int scancode, int action, int mods)
 Keyboard callback.
void CharFunc (const CoreGraphics::WindowId &id, unsigned int key)
 Character callback.
void DropFunc (const CoreGraphics::WindowId &id, int path_count, const char *paths[])
 File drop callback.
void MouseButtonFunc (const CoreGraphics::WindowId &id, int button, int action, int mods)
 Mouse Button callback.
void MouseFunc (const CoreGraphics::WindowId &id, double xpos, double ypos)
 Mouse callback.
void ScrollFunc (const CoreGraphics::WindowId &id, double xs, double ys)
 Scroll callback.
void CloseFunc (const CoreGraphics::WindowId &id)
 window close func
void FocusFunc (const CoreGraphics::WindowId &id, int focus)
 window focus
void FlushFocusLoss ()
 Tell the focus loss that no other window of the app took back while polling.
void EnableCallbacks (const CoreGraphics::WindowId &id)
 enables callbacks
void DisableCallbacks (const CoreGraphics::WindowId &id)
 disables callbacks
const WindowId InternalSetupFunction (const WindowCreateInfo &info)
 internal setup function, either does embedding or ordinary opening
void ResizeFunc (const CoreGraphics::WindowId &id, int width, int height)
 window resize
void MoveFunc (const CoreGraphics::WindowId &id, int x, int y)
 Window move.
void staticKeyFunc (GLFWwindow *window, int key, int scancode, int action, int mods)
 declare static key function as friend
void staticMouseButtonFunc (GLFWwindow *window, int button, int action, int mods)
 declare static mouse button function as friend
void staticMouseFunc (GLFWwindow *window, double xpos, double ypos)
 declare static mouse function as friend
void staticScrollFunc (GLFWwindow *window, double xs, double ys)
 declare static scroll function as friend
void staticCloseFunc (GLFWwindow *window)
 declare static close function as friend
void staticFocusFunc (GLFWwindow *window, int focus)
 declare static focus function as friend
void staticSizeFunc (GLFWwindow *window, int width, int height)
 declare static size function as friend
void staticCharFunc (GLFWwindow *window, unsigned int key)
 declare static char function as friend

Variables

static const IndexT glfwButtonToCode [GLFW_GAMEPAD_BUTTON_LAST+1]
 A GLFW button index as the code this class answers with.
static const IndexT glfwAxisToCode [GLFW_GAMEPAD_AXIS_LAST+1]
 A GLFW axis index as the code this class answers with.
static bool AppFocused = false
 whether one of the app's windows has the focus, as last told to the event handlers
static CoreGraphics::WindowId PendingFocusLoss = CoreGraphics::InvalidWindowId
 the window that lost the focus during this poll, if no other window of the app gained it yet

Function Documentation

◆ __ImplementClass() [1/3]

◆ __ImplementClass() [2/3]

◆ __ImplementClass() [3/3]

◆ __ImplementSingleton() [1/2]

◆ __ImplementSingleton() [2/2]

◆ CharFunc()

void GLFW::CharFunc ( const CoreGraphics::WindowId & id,
unsigned int key )

Character callback.

◆ CloseFunc()

void GLFW::CloseFunc ( const CoreGraphics::WindowId & id)

window close func

◆ DisableCallbacks()

void GLFW::DisableCallbacks ( const CoreGraphics::WindowId & id)

disables callbacks

◆ DropFunc()

void GLFW::DropFunc ( const CoreGraphics::WindowId & id,
int path_count,
const char * paths[] )

File drop callback.

◆ EnableCallbacks()

void GLFW::EnableCallbacks ( const CoreGraphics::WindowId & id)

enables callbacks

◆ FlushFocusLoss()

void GLFW::FlushFocusLoss ( )

Tell the focus loss that no other window of the app took back while polling.

tell a focus loss that happened while polling, unless another window of the app took the focus

◆ FocusFunc()

void GLFW::FocusFunc ( const CoreGraphics::WindowId & id,
int focus )

window focus

◆ InternalSetupFunction()

const CoreGraphics::WindowId GLFW::InternalSetupFunction ( const WindowCreateInfo & info)

internal setup function, either does embedding or ordinary opening

◆ KeyFunc()

void GLFW::KeyFunc ( const CoreGraphics::WindowId & id,
int key,
int scancode,
int action,
int mods )

Keyboard callback.

◆ MatchPixelFormat()

bool GLFW::MatchPixelFormat ( PixelFormat::Code format,
const GLFWvidmode & mode )

◆ ModsFromGlfw()

Input::Modifier::Code GLFW::ModsFromGlfw ( int flags,
Input::Key::Code key )

◆ MouseButtonFunc()

void GLFW::MouseButtonFunc ( const CoreGraphics::WindowId & id,
int button,
int action,
int mods )

Mouse Button callback.

◆ MouseFunc()

void GLFW::MouseFunc ( const CoreGraphics::WindowId & id,
double xpos,
double ypos )

Mouse callback.

◆ MoveFunc()

void GLFW::MoveFunc ( const CoreGraphics::WindowId & id,
int x,
int y )

Window move.

◆ ResizeFunc()

void GLFW::ResizeFunc ( const CoreGraphics::WindowId & id,
int width,
int height )

window resize

◆ ScrollFunc()

void GLFW::ScrollFunc ( const CoreGraphics::WindowId & id,
double xs,
double ys )

Scroll callback.

◆ staticCharFunc()

void GLFW::staticCharFunc ( GLFWwindow * window,
unsigned int key )

declare static char function as friend

◆ staticCloseFunc()

void GLFW::staticCloseFunc ( GLFWwindow * window)

declare static close function as friend

◆ staticFocusFunc()

void GLFW::staticFocusFunc ( GLFWwindow * window,
int focus )

declare static focus function as friend

◆ staticKeyFunc()

void GLFW::staticKeyFunc ( GLFWwindow * window,
int key,
int scancode,
int action,
int mods )

declare static key function as friend

◆ staticMouseButtonFunc()

void GLFW::staticMouseButtonFunc ( GLFWwindow * window,
int button,
int action,
int mods )

declare static mouse button function as friend

◆ staticMouseFunc()

void GLFW::staticMouseFunc ( GLFWwindow * window,
double xpos,
double ypos )

declare static mouse function as friend

◆ staticScrollFunc()

void GLFW::staticScrollFunc ( GLFWwindow * window,
double xs,
double ys )

declare static scroll function as friend

◆ staticSizeFunc()

void GLFW::staticSizeFunc ( GLFWwindow * window,
int width,
int height )

declare static size function as friend

Variable Documentation

◆ AppFocused

bool GLFW::AppFocused = false
static

whether one of the app's windows has the focus, as last told to the event handlers

◆ glfwAxisToCode

const IndexT GLFW::glfwAxisToCode[GLFW_GAMEPAD_AXIS_LAST+1]
static
Initial value:
=
{
}
@ RightThumbYAxis
Definition gamepadbase.h:82
@ LeftTriggerAxis
Definition gamepadbase.h:77
@ LeftThumbXAxis
Definition gamepadbase.h:79
@ LeftThumbYAxis
Definition gamepadbase.h:80
@ RightThumbXAxis
Definition gamepadbase.h:81
@ RightTriggerAxis
Definition gamepadbase.h:78

A GLFW axis index as the code this class answers with.

◆ glfwButtonToCode

const IndexT GLFW::glfwButtonToCode[GLFW_GAMEPAD_BUTTON_LAST+1]
static
Initial value:
=
{
}
@ HomeButton
Definition gamepadbase.h:47
@ DPadUpButton
Definition gamepadbase.h:30
@ BButton
Definition gamepadbase.h:42
@ XButton
Definition gamepadbase.h:43
@ StartButton
Definition gamepadbase.h:34
@ RightShoulderButton
Definition gamepadbase.h:39
@ DPadLeftButton
Definition gamepadbase.h:32
@ AButton
Definition gamepadbase.h:41
@ LeftThumbButton
Definition gamepadbase.h:36
@ DPadRightButton
Definition gamepadbase.h:33
@ DPadDownButton
Definition gamepadbase.h:31
@ YButton
Definition gamepadbase.h:44
@ LeftShoulderButton
Definition gamepadbase.h:38
@ BackButton
Definition gamepadbase.h:35
@ RightThumbButton
Definition gamepadbase.h:37

A GLFW button index as the code this class answers with.

The two orders are different, so this is the mapping rather than an assumption that they are the same.

◆ PendingFocusLoss

CoreGraphics::WindowId GLFW::PendingFocusLoss = CoreGraphics::InvalidWindowId
static

the window that lost the focus during this poll, if no other window of the app gained it yet