Android support, attempt-1 #8

Open
kornerr wants to merge 62 commits from and1 into master
pull from: and1
5 changed files with 5 additions and 16 deletions
Showing only changes of commit b750dace76 - Show all commits

No files matched your search

+1 -6
View File
@@ -11,7 +11,7 @@
#include <stdio.h> #include <stdio.h>
void raybriInit(void *layer) { void raybriInit() {
//SetTraceLogLevel(LOG_WARNING); //SetTraceLogLevel(LOG_WARNING);
// Initialize raylib graphics layer with a placeholder 1x1 framebuffer size // Initialize raylib graphics layer with a placeholder 1x1 framebuffer size
@@ -21,11 +21,6 @@ void raybriInit(void *layer) {
rlClearColor(0, 0, 255, 255); rlClearColor(0, 0, 255, 255);
} }
void raybriLog(const char *txt) {
fprintf(stderr, "Raybri: %s\n", txt);
fflush(stderr);
}
void raybriRender(int width, int height) { void raybriRender(int width, int height) {
// Set the drawing area to the current pixel size // Set the drawing area to the current pixel size
rlViewport(0, 0, width, height); rlViewport(0, 0, width, height);
+1 -6
View File
@@ -7,7 +7,7 @@
#include "rlgl.h" #include "rlgl.h"
#include <stdio.h> #include <stdio.h>
void raybriInit(void *layer) { void raybriInit() {
//SetTraceLogLevel(LOG_WARNING); //SetTraceLogLevel(LOG_WARNING);
// Load OpenGL extensions // Load OpenGL extensions
@@ -19,11 +19,6 @@ void raybriInit(void *layer) {
rlClearColor(0, 0, 255, 255); rlClearColor(0, 0, 255, 255);
} }
void raybriLog(const char *txt) {
fprintf(stderr, "Raybri: %s\n", txt);
fflush(stderr);
}
void raybriRender(int width, int height) { void raybriRender(int width, int height) {
// Set the drawing area to the current pixel size // Set the drawing area to the current pixel size
rlViewport(0, 0, width, height); rlViewport(0, 0, width, height);
+1 -2
View File
@@ -5,8 +5,7 @@
#include "../egl/egl.h" #include "../egl/egl.h"
#endif #endif
void raybriInit(void *layer); void raybriInit();
void raybriLog(const char *txt);
void raybriRender(int width, int height); void raybriRender(int width, int height);
void raybriShutdown(void); void raybriShutdown(void);
+1 -1
View File
@@ -23,7 +23,7 @@ func renderInit(_ vm: RenderVM) {
guard eglResetSurface(&vm.glView.st) else { fatalError("ERROR Could not reset EGL surface") } guard eglResetSurface(&vm.glView.st) else { fatalError("ERROR Could not reset EGL surface") }
guard eglMakeCurrentContext(&vm.glView.st) else { fatalError("ERROR Could not make EGL context current") } guard eglMakeCurrentContext(&vm.glView.st) else { fatalError("ERROR Could not make EGL context current") }
raybriInit(layer) raybriInit()
} }
func renderStartTimer(_ vm: RenderVM) { func renderStartTimer(_ vm: RenderVM) {
+1 -1
View File
@@ -16,7 +16,7 @@ func renderInit(_ vm: RenderVM) {
var swapInterval: Int32 = 1 var swapInterval: Int32 = 1
vm.glView.openGLContext?.setValues(&swapInterval, for: .swapInterval) vm.glView.openGLContext?.setValues(&swapInterval, for: .swapInterval)
raybriInit(nil) raybriInit()
} }
func renderStartTimer(_ vm: RenderVM) { func renderStartTimer(_ vm: RenderVM) {