4 #define VOXELCTXSTATE(ctx) (*((VoxelctxState *) (ctx)->statestack.first->key))
6 #include <linmath.h/linmath.h>
7 #include <dragonstd/list.h>
9 #include "server/server_map.h"
29 Voxelctx *voxelctx_create(List *changed_blocks, MapgenStage mgs, v3s32 pos);
30 void voxelctx_delete(Voxelctx *ctx);
31 void voxelctx_hue(Voxelctx *ctx, f32 value);
32 void voxelctx_sat(Voxelctx *ctx, f32 value);
33 void voxelctx_light(Voxelctx *ctx, f32 value);
34 void voxelctx_life(Voxelctx *ctx, s32 value);
35 void voxelctx_x(Voxelctx *ctx, f32 value);
36 void voxelctx_y(Voxelctx *ctx, f32 value);
37 void voxelctx_z(Voxelctx *ctx, f32 value);
38 void voxelctx_rx(Voxelctx *ctx, f32 value);
39 void voxelctx_ry(Voxelctx *ctx, f32 value);
40 void voxelctx_rz(Voxelctx *ctx, f32 value);
41 void voxelctx_sx(Voxelctx *ctx, f32 value);
42 void voxelctx_sy(Voxelctx *ctx, f32 value);
43 void voxelctx_sz(Voxelctx *ctx, f32 value);
44 void voxelctx_s(Voxelctx *ctx, f32 value);
45 void voxelctx_pop(Voxelctx *ctx);
46 void voxelctx_push(Voxelctx *ctx);
47 bool voxelctx_is_alive(Voxelctx *ctx);
48 void voxelctx_cube(Voxelctx *ctx, Node node, bool use_hsl);
49 void voxelctx_cylinder(Voxelctx *ctx, Node node, bool use_hsl);
50 f32 voxelctx_random(Voxelctx *ctx, f32 base, f32 vary);