Optibits
Loading...
Searching...
No Matches
include
Optibits
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
18
namespace
Optibits
19
{
20
21
class
OpenGLContext
:
Noncopyable
22
{
23
std::unique_lock<std::mutex> mLock;
24
25
public
:
26
27
explicit
OpenGLContext
(
bool
renderToWindow =
false
);
28
~OpenGLContext
();
29
30
#ifndef OPTIBITS_IPHONE
31
static
SDL_Window* sharedSdlWindow();
32
#endif
33
};
34
}
Optibits::Noncopyable
Definition
Utility.hpp:24
Optibits::OpenGLContext
Definition
GLContext.hpp:22
Generated by
1.12.0