Optibits
Loading...
Searching...
No Matches
GLContext.hpp
1#pragma once
2
3
4#include <Optibits/Platform.hpp>
5#include <Optibits/Utility.hpp>
6
7
8#if defined(OPTIBITS_IPHONE) || defined(OPTIBITS_OPENGLES)
9#include <OpenGLES/ES1/gl.h>
10#include <OpenGLES/ES1/glext.h>
11#else
12#include <SDL2/SDL.h>
13#include <SDL2/SDL_opengl.h>
14#endif
15
16#include <mutex>
17
18namespace Optibits
19{
20
22 {
23 std::unique_lock<std::mutex> mLock;
24
25 public:
26
27 explicit OpenGLContext(bool renderToWindow = false);
29
30#ifndef OPTIBITS_IPHONE
31 static SDL_Window* sharedSdlWindow();
32#endif
33 };
34}
Definition Utility.hpp:24
Definition GLContext.hpp:22