OSVR-Core
Classes | Namespaces | Typedefs | Functions
SDL2Helpers.h File Reference

Header containing some helper code for using SDL2 in a C++11 environment. More...

#include <SDL.h>
#include <SDL_opengl.h>
#include <stdexcept>
#include <string>
#include <memory>

Go to the source code of this file.

Classes

class  osvr::SDL2::Lib
 RAII wrapper for SDL startup/shutdown. More...
 
class  osvr::SDL2::TextInput
 RAII wrapper for SDL text input start/stop. More...
 
class  osvr::SDL2::GLContext
 RAII wrapper for SDL OpenGL context. More...
 

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 

Typedefs

typedef std::shared_ptr< SDL_Window > osvr::SDL2::WindowPtr
 Smart pointer for SDL_Window.
 

Functions

template<typename... Args>
WindowPtr osvr::SDL2::createWindow (Args &&... args)
 Smart pointer constructor for SDL_Window (forwarding)
 

Detailed Description

Header containing some helper code for using SDL2 in a C++11 environment.

Date
2015
Author
Sensics, Inc. http://sensics.com/osvr