transfered from codeberg
This commit is contained in:
19
source_code/renderers_module/game_renderer/game_renderer.c
Normal file
19
source_code/renderers_module/game_renderer/game_renderer.c
Normal 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();
|
||||
}
|
||||
13
source_code/renderers_module/game_renderer/game_renderer.h
Normal file
13
source_code/renderers_module/game_renderer/game_renderer.h
Normal 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
|
||||
Reference in New Issue
Block a user