ios
This commit is contained in:
1 parent
64bb22560c
commit
9c5b298131
3 files changed
+4
-3
No files matched your search
@@ -1,11 +1,12 @@
|
|||||||
#include "raybri.h"
|
#include "raybri.h"
|
||||||
|
#include "raybriEGL.h"
|
||||||
#include "rlgl.h"
|
#include "rlgl.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
void raybriInit(void *layer) {
|
void raybriInit(void *layer) {
|
||||||
//SetTraceLogLevel(LOG_WARNING);
|
//SetTraceLogLevel(LOG_WARNING);
|
||||||
|
|
||||||
if (!raybriInitEGL()) {
|
if (!raybriEGLInit()) {
|
||||||
raybriLog(stderr, "ERROR Could not initialize EGL")
|
raybriLog(stderr, "ERROR Could not initialize EGL")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include <libGLESv2/GLES/gl.h>
|
#include <libGLESv2/GLES/gl.h>
|
||||||
#include "raybriEGL.h"
|
#include "raybriEGL.h"
|
||||||
|
|
||||||
bool raybriInitEGL(void) {
|
bool raybriEGLInit(void) {
|
||||||
EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||||
if (display == EGL_NO_DISPLAY) {
|
if (display == EGL_NO_DISPLAY) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#ifndef RAYBRI_EGL_H
|
#ifndef RAYBRI_EGL_H
|
||||||
#define RAYBRI_EGL_H
|
#define RAYBRI_EGL_H
|
||||||
|
|
||||||
bool raybriInitEGL(void);
|
bool raybriEGLInit(void);
|
||||||
|
|
||||||
#endif // RAYBRI_EGL_H
|
#endif // RAYBRI_EGL_H
|
||||||
Reference in new issue
Block a user