/* Public domain */ typedef struct sg_voxel { struct sg_node _inherit; int w, h, d; M_Real *_Nullable *_Nonnull *_Nonnull map; /* Array of cells */ } SG_Voxel; __BEGIN_DECLS extern SG_NodeClass sgVoxelClass; SG_Voxel *_Nonnull SG_VoxelNew(void *_Nullable, const char *_Nullable); void SG_VoxelAlloc3(SG_Voxel *_Nonnull, Uint,Uint,Uint); void SG_VoxelReset(SG_Voxel *_Nonnull, M_Real); int SG_VoxelSet3(SG_Voxel *_Nonnull, int,int,int, M_Real); __END_DECLS