summaryrefslogtreecommitdiff
path: root/Runtime/GfxDevice/opengles20/ContextGLES20.h
blob: 4fab18b4b0c79aab576d48a512449688c214c321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#pragma once

#include "Runtime/GfxDevice/GfxDeviceObjects.h"
#include "Runtime/GfxDevice/GfxDeviceTypes.h"

#if UNITY_LINUX
#include <X11/Xlib.h>
#include <GLES2/gl2.h>
#endif

#if UNITY_BB10
#include <GLES2/gl2.h>
#include <screen/screen.h>
#endif

#if UNITY_WIN || UNITY_LINUX || UNITY_BB10 || UNITY_TIZEN || UNITY_ANDROID
bool InitializeGLES20	();
void ShutdownGLES20		();
bool IsContextGLES20Created();
#if UNITY_WIN
bool CreateContextGLES20(HWND hWnd);
#elif UNITY_LINUX
bool CreateContextGLES20(Window window);
#elif UNITY_BB10
bool CreateContextGLES20(screen_window_t window);
void ResizeContextGLES20(screen_window_t window, int width, int height);
void AdjustVsync(int val);
#elif UNITY_TIZEN
bool CreateContextGLES20();
void ResizeContextGLES20(int width, int height);
#endif
#if !UNITY_ANDROID
void DestroyContextGLES20();
#endif
#endif
void PresentContextGLES();
void PresentContextGLES20();

#if UNITY_ANDROID
void ReleaseGLES20Context();

void AcquireGLES20Context();
#endif