diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-06-22 15:12:44 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-06-22 15:12:44 +1000 |
commit | 51d0535a8d49b72ab1e47acf30f654403a94c423 (patch) | |
tree | c8e8124c7a35c2fcfa7afa857b50ce0cdb15ba7c /include | |
parent | 6fccac3372170153b59e829d11c6c0b0a5c2bc77 (diff) |
wip: porting shadowmaps to RAL
Diffstat (limited to 'include')
-rw-r--r-- | include/celeritas.h | 68 |
1 files changed, 4 insertions, 64 deletions
diff --git a/include/celeritas.h b/include/celeritas.h index 9ba741b..2f89edd 100644 --- a/include/celeritas.h +++ b/include/celeritas.h @@ -1,65 +1,5 @@ -/** - * @file celeritas.h - * @author your name (you@domain.com) - * @brief - * @version 0.1 - * @date 2024-05-09 - * - * @copyright Copyright (c) 2024 - * - */ -/* The Goal of this file is to test ocaml-bindgen on it to start moving development over into OCaml */ - -#include <stdbool.h> -#include <stdint.h> - - -// Forward Declarations -typedef struct core core; - -// Handles -typedef uint32_t model_handle; - -// Maths -typedef struct vec2 { float x, y; } vec2; -typedef struct vec3 { float x, y, z; } vec3; -typedef struct vec4 { float x, y, z, w; } vec4; -typedef struct mat4 { float data[16]; } mat4; -typedef struct transform3d { vec3 translation; vec4 rotation; float scale; } transform3d; - -// Lifecycle functions -void core_bringup(); -void core_shutdown(); -bool should_window_close(); - -void frame_begin(); -void frame_draw(); -void frame_end(); - -// Assets -model_handle model_load(const char* filepath); - -// Rendering -typedef struct render_entity { - model_handle model; - // TODO: material - transform3d transform; -} render_entity; - -void render_frame_begin(); - -// Scene -typedef struct directional_light {} directional_light; -typedef struct point_light {} point_light; -void scene_add_dir_light(directional_light light); -void scene_add_point_light(directional_light light); -void scene_add_model(model_handle model, transform3d transform); -bool scene_remove_model(model_handle model); - -void scene_set_model_transform(model_handle model, transform3d new_transform); -void scene_set_camera(vec3 pos, vec3 front); - -// Immediate mode drawing - -// Input
\ No newline at end of file +#include "defines.h" +#include "maths_types.h" +#include "maths.h" +#include "core.h"
\ No newline at end of file |