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

#include <WindowSDL.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 Attributes

static glm::i32vec2 size
 
static bool fullscreen = false
 
static bool mousegrab = false
 
static bool textinput = false
 
static SDL_Window * window = nullptr
 
static SDL_GLContext context = nullptr
 
static SDL_GameController * controller = nullptr
 

Detailed Description

Definition at line 15 of file WindowSDL.h.

Member Function Documentation

int WindowSDL::initialize ( )
static

Definition at line 25 of file WindowSDL.cpp.

void WindowSDL::eventHandling ( )
static

Definition at line 112 of file WindowSDL.cpp.

void WindowSDL::swapBuffers ( )
static

Definition at line 493 of file WindowSDL.cpp.

void WindowSDL::shutdown ( )
static

Definition at line 497 of file WindowSDL.cpp.

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

Definition at line 516 of file WindowSDL.cpp.

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

Definition at line 23 of file WindowSDL.h.

void WindowSDL::setFullscreen ( bool  f)
static

Definition at line 526 of file WindowSDL.cpp.

static bool WindowSDL::getFullscreen ( )
inlinestatic

Definition at line 26 of file WindowSDL.h.

void WindowSDL::setMousegrab ( bool  g)
static

Definition at line 537 of file WindowSDL.cpp.

static bool WindowSDL::getMousegrab ( )
inlinestatic

Definition at line 29 of file WindowSDL.h.

void WindowSDL::setTextInput ( bool  t)
static

Definition at line 549 of file WindowSDL.cpp.

static bool WindowSDL::getTextInput ( )
inlinestatic

Definition at line 32 of file WindowSDL.h.

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

Definition at line 557 of file WindowSDL.cpp.

const char * WindowSDL::getClipboard ( )
static
FIXME:
Should be freed with SDL_free(). But how, where, when?

Definition at line 565 of file WindowSDL.cpp.

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

Definition at line 578 of file WindowSDL.cpp.

Member Data Documentation

glm::i32vec2 WindowSDL::size
staticprivate

Definition at line 40 of file WindowSDL.h.

bool WindowSDL::fullscreen = false
staticprivate

Definition at line 41 of file WindowSDL.h.

bool WindowSDL::mousegrab = false
staticprivate

Definition at line 42 of file WindowSDL.h.

bool WindowSDL::textinput = false
staticprivate

Definition at line 43 of file WindowSDL.h.

SDL_Window * WindowSDL::window = nullptr
staticprivate

Definition at line 44 of file WindowSDL.h.

SDL_GLContext WindowSDL::context = nullptr
staticprivate

Definition at line 45 of file WindowSDL.h.

SDL_GameController * WindowSDL::controller = nullptr
staticprivate

Definition at line 46 of file WindowSDL.h.


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