This commit is contained in:
Михаил Капелько committed 2026-10-21 06:17:17 +03:00
1 parent f0862c88f7
commit 41a7b330aa
6 files changed
+43 -36

No files matched your search

+9 -9
View File
@@ -6,38 +6,38 @@ extern "C" {
#endif
// Render configuration, sourced from renderConst.swift.
typedef struct sr_config {
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
} sr_config;
} raybri_config;
// Initialise the OpenGL-backed raylib scene (no raylib window is created).
// The four shader sources come from renderConstShader.swift.
void sr_init(
void raybri_init(
const char *main_vs,
const char *main_fs,
const char *shadow_vs,
const char *shadow_fs,
sr_config config
raybri_config config
);
// Load the textured cube glTF model.
void sr_load_model(const char *gltf_path);
void raybri_load_model(const char *gltf_path);
// Resize the viewport.
void sr_resize(int width, int height);
void raybri_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);
void raybri_set_rotation(float x_deg, float y_deg, float z_deg);
// Render one frame.
void sr_render(void);
void raybri_render(void);
// Release all GPU resources.
void sr_shutdown(void);
void raybri_shutdown(void);
#ifdef __cplusplus
}