WIP : feature/physics_bsptree #1

Open
andrew wants to merge 5 commits from feature/physics_bsptree into main
Showing only changes of commit f4728bf19d - Show all commits

14
include/akgl/stage.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef _STAGE_H_
#define _STAGE_H_
// Stages are collections of lights and cameras in a 2D or 3D space wherein actors
// and backgrounds are placed and directed for action.
typedef struct akgl_Stage {
aksl_TreeNode bsp;
akerr_ErrorContext AKERR_NOIGNORE *(*partition)(struct akgl_Stage *self);
} akgl_Stage;
// A function to divide the stage into a binary space partition tree with lists of actors in each partition
akerr_ErrorContext AKERR_NOIGNORE akgl_stage_2d_bsp(akgl_Stage *self);
#endif _STAGE_H_