diff options
Diffstat (limited to 'make/stub_includes')
-rw-r--r-- | make/stub_includes/ios/OpenGLES/EAGL.h | 13 | ||||
-rw-r--r-- | make/stub_includes/ios/OpenGLES/EAGLDrawable.h | 2 | ||||
-rw-r--r-- | make/stub_includes/ios/QuartzCore/CAEAGLLayer.h | 1 | ||||
-rw-r--r-- | make/stub_includes/ios/QuartzCore/CALayer.h | 1 | ||||
-rw-r--r-- | make/stub_includes/ios/UIKit/UIKit.h | 1 | ||||
-rw-r--r-- | make/stub_includes/ios/window-system1.c | 2 | ||||
-rw-r--r-- | make/stub_includes/macosx/UIKit/NSOpenGL.h | 3 | ||||
-rw-r--r-- | make/stub_includes/macosx/UIKit/NSOpenGLLayer.h | 1 | ||||
-rw-r--r-- | make/stub_includes/macosx/UIKit/NSOpenGLView.h | 1 | ||||
-rw-r--r-- | make/stub_includes/macosx/UIKit/UIView.h | 1 | ||||
-rw-r--r-- | make/stub_includes/opengl/ios-window-system.h | 51 |
11 files changed, 77 insertions, 0 deletions
diff --git a/make/stub_includes/ios/OpenGLES/EAGL.h b/make/stub_includes/ios/OpenGLES/EAGL.h new file mode 100644 index 000000000..050843a99 --- /dev/null +++ b/make/stub_includes/ios/OpenGLES/EAGL.h @@ -0,0 +1,13 @@ +typedef struct _EAGLContext EAGLContext; +typedef struct _EAGLSharegroup EAGLSharegroup; +typedef struct _EAGLDrawable EAGLDrawable; + +typedef enum _EAGLRenderingAPI +{ + kEAGLRenderingAPIOpenGLES1 = 1, + kEAGLRenderingAPIOpenGLES2 = 2, + kEAGLRenderingAPIOpenGLES3 = 3, +} EAGLRenderingAPI; + +void EAGLGetVersion(unsigned int* major, unsigned int* minor); + diff --git a/make/stub_includes/ios/OpenGLES/EAGLDrawable.h b/make/stub_includes/ios/OpenGLES/EAGLDrawable.h new file mode 100644 index 000000000..6282c155e --- /dev/null +++ b/make/stub_includes/ios/OpenGLES/EAGLDrawable.h @@ -0,0 +1,2 @@ +typedef struct _EAGLDrawable EAGLDrawable; + diff --git a/make/stub_includes/ios/QuartzCore/CAEAGLLayer.h b/make/stub_includes/ios/QuartzCore/CAEAGLLayer.h new file mode 100644 index 000000000..67f2a53c4 --- /dev/null +++ b/make/stub_includes/ios/QuartzCore/CAEAGLLayer.h @@ -0,0 +1 @@ +typedef struct _CAEAGLLayer CAEAGLLayer; diff --git a/make/stub_includes/ios/QuartzCore/CALayer.h b/make/stub_includes/ios/QuartzCore/CALayer.h new file mode 100644 index 000000000..a5a6579a6 --- /dev/null +++ b/make/stub_includes/ios/QuartzCore/CALayer.h @@ -0,0 +1 @@ +typedef struct _CALayer CALayer; diff --git a/make/stub_includes/ios/UIKit/UIKit.h b/make/stub_includes/ios/UIKit/UIKit.h new file mode 100644 index 000000000..155fdc932 --- /dev/null +++ b/make/stub_includes/ios/UIKit/UIKit.h @@ -0,0 +1 @@ +typedef struct _UIView UIView; diff --git a/make/stub_includes/ios/window-system1.c b/make/stub_includes/ios/window-system1.c new file mode 100644 index 000000000..d53c9e27d --- /dev/null +++ b/make/stub_includes/ios/window-system1.c @@ -0,0 +1,2 @@ +#include "ios-window-system.h" + diff --git a/make/stub_includes/macosx/UIKit/NSOpenGL.h b/make/stub_includes/macosx/UIKit/NSOpenGL.h new file mode 100644 index 000000000..1b7656dc1 --- /dev/null +++ b/make/stub_includes/macosx/UIKit/NSOpenGL.h @@ -0,0 +1,3 @@ +typedef struct _NSOpenGLPixelFormat NSOpenGLPixelFormat; +typedef struct _NSOpenGLContext NSOpenGLContext; +typedef struct _NSOpenGLPixelBuffer NSOpenGLPixelBuffer; diff --git a/make/stub_includes/macosx/UIKit/NSOpenGLLayer.h b/make/stub_includes/macosx/UIKit/NSOpenGLLayer.h new file mode 100644 index 000000000..2e5e81a68 --- /dev/null +++ b/make/stub_includes/macosx/UIKit/NSOpenGLLayer.h @@ -0,0 +1 @@ +typedef struct _NSOpenGLLayer NSOpenGLLayer; diff --git a/make/stub_includes/macosx/UIKit/NSOpenGLView.h b/make/stub_includes/macosx/UIKit/NSOpenGLView.h new file mode 100644 index 000000000..6492287df --- /dev/null +++ b/make/stub_includes/macosx/UIKit/NSOpenGLView.h @@ -0,0 +1 @@ +typedef struct _NSOpenGLView NSOpenGLView; diff --git a/make/stub_includes/macosx/UIKit/UIView.h b/make/stub_includes/macosx/UIKit/UIView.h new file mode 100644 index 000000000..5d3acf658 --- /dev/null +++ b/make/stub_includes/macosx/UIKit/UIView.h @@ -0,0 +1 @@ +typedef struct _NSView NSView; diff --git a/make/stub_includes/opengl/ios-window-system.h b/make/stub_includes/opengl/ios-window-system.h new file mode 100644 index 000000000..ae4f1884d --- /dev/null +++ b/make/stub_includes/opengl/ios-window-system.h @@ -0,0 +1,51 @@ +/** + * Copyright 2019 JogAmp Community. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, are + * permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY JogAmp Community ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JogAmp Community OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and documentation are those of the + * authors and should not be interpreted as representing official policies, either expressed + * or implied, of JogAmp Community. + */ +#include <UIKit/UIKit.h> +#include <OpenGLES/EAGLDrawable.h> +#include <QuartzCore/CAEAGLLayer.h> +#include <OpenGLES/EAGL.h> +#include <gluegen_stdint.h> + +typedef int Bool; + +EAGLContext * eaglCreateContext(EAGLRenderingAPI api); +EAGLContext * eaglCreateContextShared(EAGLRenderingAPI api, EAGLSharegroup* sharegroup); +Bool eaglDeleteContext(EAGLContext *ctx, Bool releaseOnMainThread); + +EAGLRenderingAPI eaglGetRenderingAPI(EAGLContext* ctx); +EAGLSharegroup * eaglGetSharegroup(EAGLContext *ctx); +Bool eaglIsContextMultiThreaded(EAGLContext* ctx); +void eaglSetContextMultiThreaded(EAGLContext* ctx, Bool v); /* spawn off load to new GL worker thread if true */ + +EAGLContext* eaglGetCurrentContext(void); +Bool eaglMakeCurrentContext(EAGLContext* ctx); + +Bool eaglBindDrawableStorageToRenderbuffer(EAGLContext* ctx, int renderbufferTarget, CAEAGLLayer /* EAGLDrawable */ * drawable); +Bool eaglPresentRenderbuffer(EAGLContext* ctx, int renderbufferTarget); + +void* getProcAddress(const char *procName); |