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/opengles30/ContextGLES30.h | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Runtime/GfxDevice/opengles30/ContextGLES30.h (limited to 'Runtime/GfxDevice/opengles30/ContextGLES30.h') diff --git a/Runtime/GfxDevice/opengles30/ContextGLES30.h b/Runtime/GfxDevice/opengles30/ContextGLES30.h new file mode 100644 index 0000000..c509f57 --- /dev/null +++ b/Runtime/GfxDevice/opengles30/ContextGLES30.h @@ -0,0 +1,37 @@ +#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_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(); + + -- cgit v1.1-26-g67d0