try my way

This commit is contained in:
Михаил Капелько committed 2026-10-22 18:33:09 +03:00
1 parent 6fecc1e95e
commit fa1cd053c8
16 files changed
+521 -2

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
#ifndef OGS_MAHJONG_RAYLIB_IOS_BRIDGE_H
#define OGS_MAHJONG_RAYLIB_IOS_BRIDGE_H
#ifdef __cplusplus
extern "C" {
#endif
// Initialise EGL (ANGLE) on the given CALayer and bring up raylib's rlgl.
// Unlike the ghera/raylib-iOS backend, no raylib window, view controller or
// app delegate is involved: the caller owns the layer and the frame timer.
// Returns 1 on success, 0 on failure.
int raybri_ios_init(void *layer, int width, int height);
// Recreate the EGL window surface for a new drawable size (backing pixels).
void raybri_ios_resize(int width, int height);
// Render one frame: clear the drawable to a time-based background colour and
// present it. `time` is monotonically increasing seconds.
void raybri_ios_render(double time);
// Release rlgl state and the EGL surface/context/display.
void raybri_ios_shutdown(void);
#ifdef __cplusplus
}
#endif
#endif