From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/GfxDevice/opengles20/ContextGLES20.h | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Runtime/GfxDevice/opengles20/ContextGLES20.h (limited to 'Runtime/GfxDevice/opengles20/ContextGLES20.h') diff --git a/Runtime/GfxDevice/opengles20/ContextGLES20.h b/Runtime/GfxDevice/opengles20/ContextGLES20.h new file mode 100644 index 0000000..4fab18b --- /dev/null +++ b/Runtime/GfxDevice/opengles20/ContextGLES20.h @@ -0,0 +1,43 @@ +#pragma once + +#include "Runtime/GfxDevice/GfxDeviceObjects.h" +#include "Runtime/GfxDevice/GfxDeviceTypes.h" + +#if UNITY_LINUX +#include +#include +#endif + +#if UNITY_BB10 +#include +#include +#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 -- cgit v1.1-26-g67d0