const
This commit is contained in:
1 parent
9757a40b36
commit
cc2748efb7
3 files changed
+35
No files matched your search
@@ -29,6 +29,7 @@ bool raybriEGLInit(void) {
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // RAYBRI_EGL_IMPLEMENTATION
|
#endif // RAYBRI_EGL_IMPLEMENTATION
|
||||||
|
|
||||||
#endif // RAYBRI_EGL_H
|
#endif // RAYBRI_EGL_H
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
#ifndef RAYBRI_EGL_CONST_H
|
||||||
|
#define RAYBRI_EGL_CONST_H
|
||||||
|
|
||||||
|
#include <libEGL/libEGL.h>
|
||||||
|
|
||||||
|
// Header
|
||||||
|
|
||||||
|
extern const EGLint RAYBRI_EGL_CFG[];
|
||||||
|
extern const EGLint RAYBRI_EGL_CTX[];
|
||||||
|
|
||||||
|
// Source
|
||||||
|
|
||||||
|
const EGLint RAYBRI_EGL_CFG[] = {
|
||||||
|
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES3_BIT,
|
||||||
|
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
|
||||||
|
EGL_RED_SIZE, 8,
|
||||||
|
EGL_GREEN_SIZE, 8,
|
||||||
|
EGL_BLUE_SIZE, 8,
|
||||||
|
EGL_ALPHA_SIZE, 8,
|
||||||
|
EGL_DEPTH_SIZE, 16,
|
||||||
|
EGL_NONE
|
||||||
|
};
|
||||||
|
|
||||||
|
const EGLint RAYBRI_EGL_CTX[] = {
|
||||||
|
EGL_CONTEXT_CLIENT_VERSION, 3,
|
||||||
|
EGL_NONE
|
||||||
|
};
|
||||||
|
|
||||||
|
#if defined(RAYBRI_EGL_CONST_IMPLEMENTATION)
|
||||||
|
|
||||||
|
#endif // RAYBRI_EGL_CONST_IMPLEMENTATION
|
||||||
|
|
||||||
|
#endif // RAYBRI_EGL_CONST_H
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
../../../../components/raybri/ios/raybriEGLConst.h
|
||||||
Reference in new issue
Block a user