Clean up identifiers, use blocks for commands

FossilOrigin-Name: d7661be1b1dc8fda8e4de50f9a9d75907f498e6e07530241fb04be015ca3d9ae
This commit is contained in:
Jonathan Schleifer 2025-03-23 19:40:00 +00:00
parent e995b95a84
commit daa4c19312
25 changed files with 391 additions and 535 deletions

View file

@ -2,6 +2,7 @@
#include "cube.h"
#import "Command.h"
#import "DynamicEntity.h"
#define NUMRAYS 512
@ -10,12 +11,9 @@ float rdist[NUMRAYS];
bool ocull = true;
float odist = 256;
void
toggleocull()
{
COMMAND(toggleocull, ARG_NONE, ^{
ocull = !ocull;
}
COMMAND(toggleocull, ARG_NONE)
})
// constructs occlusion map: cast rays in all directions on the 2d plane and
// record distance. done exactly once per frame.