This commit is contained in:
Михаил Капелько committed 2026-10-29 23:42:24 +03:00
1 parent ea68f48608
commit b750dace76
5 files changed
+5 -16

No files matched your search

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