Display a textured cube with Raylib (#2)

This commit was merged in pull request #2.
This commit is contained in:
kornerr committed 2026-10-18 12:16:39 +02:00
1 parent 184454cf59
commit 1515a9483b
13 files changed
+982 -12

No files matched your search

@@ -0,0 +1,30 @@
#ifndef OGS_MAHJONG_RAYLIB_BRIDGE_H
#define OGS_MAHJONG_RAYLIB_BRIDGE_H
#ifdef __cplusplus
extern "C" {
#endif
// Initialise the OpenGL-backed raylib scene (no raylib window is created).
void sr_init(int width, int height);
// Load the textured cube glTF model.
void sr_load_model(const char *gltf_path);
// Resize the viewport.
void sr_resize(int width, int height);
// Cube rotation, driven by the application (Euler angles, degrees).
void sr_set_rotation(float x_deg, float y_deg, float z_deg);
// Render one frame.
void sr_render(void);
// Release all GPU resources.
void sr_shutdown(void);
#ifdef __cplusplus
}
#endif
#endif