OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
WindowGLFW Class Reference

#include <WindowGLFW.h>

Static Public Member Functions

static int initialize ()
 
static void eventHandling ()
 
static void swapBuffers ()
 
static void shutdown ()
 
static void setSize (glm::i32vec2 s)
 
static glm::i32vec2 getSize ()
 
static void setFullscreen (bool f)
 
static bool getFullscreen ()
 
static void setMousegrab (bool g)
 
static bool getMousegrab ()
 
static void setTextInput (bool t)
 
static bool getTextInput ()
 
static void setClipboard (const char *s)
 
static const char * getClipboard ()
 
static void inputPositionCallback (int x, int y)
 

Static Private Member Functions

static void errorCallback (int error, const char *desc)
 
static void sizeCallback (GLFWwindow *w, int width, int height)
 
static void cursorCallback (GLFWwindow *w, double xpos, double ypos)
 
static void keyCallback (GLFWwindow *w, int key, int scancode, int action, int mods)
 
static void buttonCallback (GLFWwindow *w, int button, int action, int mods)
 
static void scrollCallback (GLFWwindow *w, double xoffset, double yoffset)
 
static KeyboardButton convertAsciiButton (int key)
 

Static Private Attributes

static glm::i32vec2 size
 
static bool fullscreen = false
 
static bool mousegrab = false
 
static bool textinput = false
 
static GLFWwindow * window = nullptr
 
static int lastMouseX = 0
 
static int lastMouseY = 0
 
static bool modShift = false
 
static bool modControl = false
 
static bool modAlt = false
 
static bool modSuper = false
 

Detailed Description

Definition at line 15 of file WindowGLFW.h.

Member Function Documentation

int WindowGLFW::initialize ( )
static

Definition at line 27 of file WindowGLFW.cpp.

void WindowGLFW::eventHandling ( )
static

Definition at line 62 of file WindowGLFW.cpp.

void WindowGLFW::swapBuffers ( )
static

Definition at line 72 of file WindowGLFW.cpp.

void WindowGLFW::shutdown ( )
static

Definition at line 76 of file WindowGLFW.cpp.

void WindowGLFW::setSize ( glm::i32vec2  s)
static

Definition at line 84 of file WindowGLFW.cpp.

static glm::i32vec2 WindowGLFW::getSize ( )
inlinestatic

Definition at line 23 of file WindowGLFW.h.

void WindowGLFW::setFullscreen ( bool  f)
static
FIXME:
GLFW does not support toggling fullscreen?!

Definition at line 94 of file WindowGLFW.cpp.

static bool WindowGLFW::getFullscreen ( )
inlinestatic

Definition at line 26 of file WindowGLFW.h.

void WindowGLFW::setMousegrab ( bool  g)
static

Definition at line 99 of file WindowGLFW.cpp.

static bool WindowGLFW::getMousegrab ( )
inlinestatic

Definition at line 29 of file WindowGLFW.h.

void WindowGLFW::setTextInput ( bool  t)
static

Definition at line 110 of file WindowGLFW.cpp.

static bool WindowGLFW::getTextInput ( )
inlinestatic

Definition at line 32 of file WindowGLFW.h.

void WindowGLFW::setClipboard ( const char *  s)
static

Definition at line 114 of file WindowGLFW.cpp.

const char * WindowGLFW::getClipboard ( )
static

Definition at line 119 of file WindowGLFW.cpp.

void WindowGLFW::inputPositionCallback ( int  x,
int  y 
)
static

Definition at line 126 of file WindowGLFW.cpp.

void WindowGLFW::errorCallback ( int  error,
const char *  desc 
)
staticprivate

Definition at line 130 of file WindowGLFW.cpp.

void WindowGLFW::sizeCallback ( GLFWwindow *  w,
int  width,
int  height 
)
staticprivate

Definition at line 134 of file WindowGLFW.cpp.

void WindowGLFW::cursorCallback ( GLFWwindow *  w,
double  xpos,
double  ypos 
)
staticprivate

Definition at line 139 of file WindowGLFW.cpp.

void WindowGLFW::keyCallback ( GLFWwindow *  w,
int  key,
int  scancode,
int  action,
int  mods 
)
staticprivate
FIXME:
GLFW does not support UTF8 text input?!

Definition at line 147 of file WindowGLFW.cpp.

void WindowGLFW::buttonCallback ( GLFWwindow *  w,
int  button,
int  action,
int  mods 
)
staticprivate

Definition at line 185 of file WindowGLFW.cpp.

void WindowGLFW::scrollCallback ( GLFWwindow *  w,
double  xoffset,
double  yoffset 
)
staticprivate

Definition at line 228 of file WindowGLFW.cpp.

KeyboardButton WindowGLFW::convertAsciiButton ( int  key)
staticprivate
FIXME:
GLFW requires keyboard layout? Currently US is hard coded

Definition at line 232 of file WindowGLFW.cpp.

Member Data Documentation

glm::i32vec2 WindowGLFW::size
staticprivate

Definition at line 49 of file WindowGLFW.h.

bool WindowGLFW::fullscreen = false
staticprivate

Definition at line 50 of file WindowGLFW.h.

bool WindowGLFW::mousegrab = false
staticprivate

Definition at line 51 of file WindowGLFW.h.

bool WindowGLFW::textinput = false
staticprivate

Definition at line 52 of file WindowGLFW.h.

GLFWwindow * WindowGLFW::window = nullptr
staticprivate

Definition at line 53 of file WindowGLFW.h.

int WindowGLFW::lastMouseX = 0
staticprivate

Definition at line 54 of file WindowGLFW.h.

int WindowGLFW::lastMouseY = 0
staticprivate

Definition at line 55 of file WindowGLFW.h.

bool WindowGLFW::modShift = false
staticprivate

Definition at line 56 of file WindowGLFW.h.

bool WindowGLFW::modControl = false
staticprivate

Definition at line 57 of file WindowGLFW.h.

bool WindowGLFW::modAlt = false
staticprivate

Definition at line 58 of file WindowGLFW.h.

bool WindowGLFW::modSuper = false
staticprivate

Definition at line 59 of file WindowGLFW.h.


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