blob: c509f57b171522fb0ceb838ae70bd1a63df8d5bf (
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
|
#pragma once
#include "Runtime/GfxDevice/GfxDeviceObjects.h"
#include "Runtime/GfxDevice/GfxDeviceTypes.h"
#if UNITY_LINUX
#include <X11/Xlib.h>
#include <GLES3/gl2.h>
#endif
#if UNITY_BB10
#include <GLES3/gl2.h>
#include <screen/screen.h>
#endif
#if UNITY_WIN || UNITY_LINUX || UNITY_BB10 || UNITY_ANDROID
bool InitializeGLES30 ();
void ShutdownGLES30 ();
bool IsContextGLES30Created();
#if UNITY_WIN
bool CreateContextGLES30(HWND hWnd);
#elif UNITY_LINUX
bool CreateContextGLES30(Window window);
#elif UNITY_BB10
bool CreateContextGLES30(screen_window_t window);
void ResizeContextGLES30(screen_window_t window, int width, int height);
#endif
void DestroyContextGLES30();
#endif
void PresentContextGLES();
void PresentContextGLES30();
void ReleaseGLES30Context();
void AcquireGLES30Context();
|