From 1905ec7f6fa1094cc1b01084e808e13f720aa54e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Sun, 25 Oct 2026 06:57:14 +0300 Subject: [PATCH] camelCase --- components/raybri/raybri.c | 13 ++++++++----- components/raybri/raybri.h | 8 ++++---- components/render/renderAux.swift | 4 ++-- components/render/renderEffect.swift | 4 ++-- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/components/raybri/raybri.c b/components/raybri/raybri.c index 84920cb..ccdf8f6 100644 --- a/components/raybri/raybri.c +++ b/components/raybri/raybri.c @@ -7,23 +7,26 @@ static int sr_width = 1; static int sr_height = 1; static int sr_ready = 0; -void raybri_init(void) { +void raybriInit(void) { //SetTraceLogLevel(LOG_WARNING); + + // Load OpenGL extensions rlLoadExtensions((void *)raybriGLLoader); - // Init with default 1x1 size + // Use default 1x1 window size for successful init rlglInit(1, 1); + // Background is painted in blue rlClearColor(0, 0, 255, 255); sr_ready = 1; } -void raybri_resize(int width, int height) +void raybriResize(int width, int height) { if (width > 0) sr_width = width; if (height > 0) sr_height = height; } -void raybri_render(void) +void raybriRender(void) { if (!sr_ready) return; @@ -32,7 +35,7 @@ void raybri_render(void) rlDrawRenderBatchActive(); } -void raybri_shutdown(void) +void raybriShutdown(void) { if (!sr_ready) return; diff --git a/components/raybri/raybri.h b/components/raybri/raybri.h index 076866d..6a98d2d 100644 --- a/components/raybri/raybri.h +++ b/components/raybri/raybri.h @@ -1,9 +1,9 @@ #ifndef RAYBRI_H #define RAYBRI_H -void raybri_init(void); -void raybri_render(void); -void raybri_resize(int width, int height); -void raybri_shutdown(void); +void raybriInit(void); +void raybriRender(void); +void raybriResize(int width, int height); +void raybriShutdown(void); #endif // RAYBRI_H diff --git a/components/render/renderAux.swift b/components/render/renderAux.swift index 566fafc..ebaa6b1 100644 --- a/components/render/renderAux.swift +++ b/components/render/renderAux.swift @@ -3,8 +3,8 @@ import RaylibBridge func renderDraw(_ vm: RenderVM) { vm.glView.openGLContext?.makeCurrentContext() - raybri_resize(vm.pixelSize[0], vm.pixelSize[1]) - raybri_render() + raybriResize(vm.pixelSize[0], vm.pixelSize[1]) + raybriRender() vm.glView.openGLContext?.flushBuffer() } diff --git a/components/render/renderEffect.swift b/components/render/renderEffect.swift index 93fcb51..ad3d568 100644 --- a/components/render/renderEffect.swift +++ b/components/render/renderEffect.swift @@ -6,7 +6,7 @@ func renderDeinit(_ vm: RenderVM) { print("ИГР renderD") vm.timer?.invalidate() vm.glView.openGLContext?.makeCurrentContext() - raybri_shutdown() + raybriShutdown() } func renderInit(_ vm: RenderVM) { @@ -16,7 +16,7 @@ func renderInit(_ vm: RenderVM) { var swapInterval: Int32 = 1 vm.glView.openGLContext?.setValues(&swapInterval, for: .swapInterval) - raybri_init() + raybriInit() } func renderStartTimer(_ vm: RenderVM) {