Introduce chkgfx (#3)

This commit was merged in pull request #3.
This commit is contained in:
kornerr committed 2026-10-22 05:17:21 +02:00
1 parent 1515a9483b
commit fb28dd55c7
77 files changed
+1598 -543

No files matched your search

+46
View File
@@ -0,0 +1,46 @@
#ifndef OGS_MAHJONG_RAYLIB_BRIDGE_H
#define OGS_MAHJONG_RAYLIB_BRIDGE_H
#ifdef __cplusplus
extern "C" {
#endif
// Render configuration, sourced from renderConst.swift.
typedef struct raybri_config {
float fov_y; // vertical field of view (degrees)
float near_plane; // camera near plane
float far_plane; // camera far plane
int shadow_size; // shadow map resolution (px)
float ground_size; // ground plane extent
} raybri_config;
// Initialise the OpenGL-backed raylib scene (no raylib window is created).
// The four shader sources come from renderConstShader.swift.
void raybri_init(
const char *main_vs,
const char *main_fs,
const char *shadow_vs,
const char *shadow_fs,
raybri_config config
);
// Load the textured cube glTF model.
void raybri_load_model(const char *gltf_path);
// Resize the viewport.
void raybri_resize(int width, int height);
// Cube rotation, driven by the application (Euler angles, degrees).
void raybri_set_rotation(float x_deg, float y_deg, float z_deg);
// Render one frame.
void raybri_render(void);
// Release all GPU resources.
void raybri_shutdown(void);
#ifdef __cplusplus
}
#endif
#endif