#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