some
This commit is contained in:
1 parent
fbb02855ee
commit
cc445309e8
4 files changed
+35
-17
No files matched your search
@@ -5,11 +5,21 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// Render configuration, sourced from renderConst.swift.
|
||||
typedef struct sr_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;
|
||||
|
||||
// Initialise the OpenGL-backed raylib scene (no raylib window is created).
|
||||
// The four shader sources come from renderConstShader.swift.
|
||||
void sr_init(int width, int height,
|
||||
const char *main_vs, const char *main_fs,
|
||||
const char *shadow_vs, const char *shadow_fs);
|
||||
const char *shadow_vs, const char *shadow_fs,
|
||||
sr_config config);
|
||||
|
||||
// Load the textured cube glTF model.
|
||||
void sr_load_model(const char *gltf_path);
|
||||
|
||||
Reference in new issue
Block a user