transfered from codeberg

This commit is contained in:
2026-03-26 14:46:39 -05:00
parent 630f28bb7e
commit 5ed2173793
136 changed files with 14932 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#include "game_renderer.h"
#include "user_interface.h"
#include "world_renderer.h"
#include "raylib.h"
/**
* Orchestrates the entire frame rendering sequence by clearing the buffers,
* invoking the 3D world pass, and overlaying the 2D user interface.
*/
void draw_game(struct world_struct *world, struct player_struct *player)
{
BeginDrawing();
ClearBackground((Color){ 120, 180, 180, 255 });
draw_world_3D(world, player);
draw_ui_2D(player);
EndDrawing();
}

View File

@@ -0,0 +1,13 @@
#ifndef game_renderer_h
#define game_renderer_h
struct world_struct;
struct player_struct;
/**
* Orchestrates the entire frame rendering sequence by clearing the buffers,
* invoking the 3D world pass, and overlaying the 2D user interface.
*/
void draw_game(struct world_struct *world, struct player_struct *player);
#endif