#include #ifdef _WIN32 #include typedef sp::Win32GLContext ContextType; #elif defined(__linux__) || defined(unix) || defined(__unix) || defined(__unix__) #include typedef sp::GLXContext ContextType; #else #error "No GLContext implementation exists" #endif namespace sp { GLContext* GLContext::create() { return new ContextType(); } GLContext::~GLContext() { // Nothing to do. } } // namespace sp