![]() |
Jo Engine 2026.11.1
Jo Sega Saturn Engine
|
Jo Engine Voxel renderer. More...
Go to the source code of this file.
Data Structures | |
| struct | __jo_voxel_computation_cache |
| Voxel computation cache (internal engine usage). More... | |
| struct | jo_voxel_camera |
| Voxel camera definition. More... | |
| struct | jo_voxel |
| Voxel main definition. More... | |
Functions | |
| void | jo_voxel_do_angle_computation (jo_voxel *const voxel_data) |
| Do computation linked to camera angle. | |
| void | jo_voxel_redraw (const jo_voxel *const voxel_data) |
| Draw voxels to gfx. | |
| void | jo_voxel_run (jo_voxel *const voxel_data) |
| Draw voxels to gfx. | |
| void | __jo_voxel_redraw (const jo_voxel *const voxel_data, const bool clear) |
| Draw voxels to gfx (internal engine usage, see jo_voxel_redraw() and jo_voxel_redraw_and_flush()). | |
| static __jo_force_inline void | jo_voxel_redraw_and_flush (const jo_voxel *const voxel_data) |
| Draw voxels and flush the buffer. | |
| static __jo_force_inline void | jo_voxel_set_scale (jo_voxel *const voxel_data, const jo_fixed scale) |
| Set scale (camera.scale). | |
| static __jo_force_inline void | jo_voxel_increase_view_distance (jo_voxel *const voxel_data, const jo_fixed distance) |
| Increase view distance (camera.zfar). | |
| static __jo_force_inline void | jo_voxel_decrease_view_distance (jo_voxel *const voxel_data, const jo_fixed distance) |
| Decrease view distance (camera.zfar). | |
| static __jo_force_inline void | jo_voxel_horizon_up (jo_voxel *const voxel_data, const jo_fixed distance) |
| Increase horizon height (camera.horizon). | |
| static __jo_force_inline void | jo_voxel_horizon_down (jo_voxel *const voxel_data, const jo_fixed distance) |
| Decrease horizon height (camera.horizon). | |
| static __jo_force_inline void | jo_voxel_move_up (jo_voxel *voxel_data, const jo_fixed distance) |
| Increase camera height (camera.height). | |
| static __jo_force_inline void | jo_voxel_move_down (jo_voxel *const voxel_data, const jo_fixed distance) |
| Decrease camera height (camera.height). | |
| static __jo_force_inline void | jo_voxel_move_forward (jo_voxel *const voxel_data, const jo_fixed distance) |
| Move camera forward (camera.x & camera.y). | |
| static __jo_force_inline void | jo_voxel_move_backward (jo_voxel *const voxel_data, const jo_fixed distance) |
| Move camera backward (camera.x & camera.y). | |
| static __jo_force_inline void | jo_voxel_rotate_left (jo_voxel *const voxel_data, const jo_fixed angle_rad) |
| Rotate camera on the left (camera.angle). | |
| static __jo_force_inline void | jo_voxel_rotate_right (jo_voxel *const voxel_data, const jo_fixed angle_rad) |
| Rotate camera on the right (camera.angle). | |
Jo Engine Voxel renderer.
| struct __jo_voxel_computation_cache |
| struct jo_voxel_camera |
| struct jo_voxel |
Voxel main definition.
| Data Fields | ||
|---|---|---|
| __jo_voxel_computation_cache | __cache | |
| jo_voxel_camera | camera | |
| jo_software_renderer_gfx * | gfx | |
| jo_img_8bits | height_img | |
| jo_palette | height_pal | |
| jo_img_8bits | terrain_img | |
| jo_palette | terrain_pal | |
| bool | use_zbuffer | |
| void __jo_voxel_redraw | ( | const jo_voxel *const | voxel_data, |
| const bool | clear ) |
Draw voxels to gfx (internal engine usage, see jo_voxel_redraw() and jo_voxel_redraw_and_flush()).
| voxel_data | Voxel |
| clear | Clear the pixels that are not drawn in black |
|
static |
Decrease view distance (camera.zfar).
| voxel_data | Voxel |
| distance | fixed distance value (see also jo_int2fixed() or jo_float2fixed()) |
| void jo_voxel_do_angle_computation | ( | jo_voxel *const | voxel_data | ) |
Do computation linked to camera angle.
| voxel_data | Voxel |
|
static |
Decrease horizon height (camera.horizon).
| voxel_data | Voxel |
| distance | fixed distance value (see also jo_int2fixed() or jo_float2fixed()) |
|
static |
Increase horizon height (camera.horizon).
| voxel_data | Voxel |
| distance | fixed distance value (see also jo_int2fixed() or jo_float2fixed()) |
|
static |
Increase view distance (camera.zfar).
| voxel_data | Voxel |
| distance | fixed distance value (see also jo_int2fixed() or jo_float2fixed()) |
|
static |
Move camera backward (camera.x & camera.y).
| voxel_data | Voxel |
| distance | fixed distance value (see also jo_int2fixed() or jo_float2fixed()) |
|
static |
Decrease camera height (camera.height).
| voxel_data | Voxel |
| distance | fixed distance value (see also jo_int2fixed() or jo_float2fixed()) |
|
static |
Move camera forward (camera.x & camera.y).
| voxel_data | Voxel |
| distance | fixed distance value (see also jo_int2fixed() or jo_float2fixed()) |
|
static |
Increase camera height (camera.height).
| voxel_data | Voxel |
| distance | fixed distance value (see also jo_int2fixed() or jo_float2fixed()) |
| void jo_voxel_redraw | ( | const jo_voxel *const | voxel_data | ) |
Draw voxels to gfx.
| voxel_data | Voxel |
|
static |
Draw voxels and flush the buffer.
| voxel_data | Voxel |
|
static |
Rotate camera on the left (camera.angle).
| voxel_data | Voxel |
| angle_rad | fixed rad value (see also jo_int2fixed() or jo_float2fixed()) |
|
static |
Rotate camera on the right (camera.angle).
| voxel_data | Voxel |
| angle_rad | fixed rad value (see also jo_int2fixed() or jo_float2fixed()) |
| void jo_voxel_run | ( | jo_voxel *const | voxel_data | ) |
Draw voxels to gfx.
| voxel_data | Voxel |
|
static |
Set scale (camera.scale).
| voxel_data | Voxel |
| scale | Scale: fixed value (see also jo_int2fixed() or jo_float2fixed()) |