Jo Engine
2024.04.28
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. More... | |
void | jo_voxel_redraw (jo_voxel *const voxel_data) |
Draw voxels to gfx. More... | |
void | jo_voxel_run (jo_voxel *const voxel_data) |
Draw voxels to gfx. More... | |
static __jo_force_inline void | jo_voxel_redraw_and_flush (jo_voxel *const voxel_data) |
Draw voxels and flush the buffer. More... | |
static __jo_force_inline void | jo_voxel_increase_view_distance (jo_voxel *const voxel_data, const jo_fixed distance) |
Increase view distance (camera.zfar) More... | |
static __jo_force_inline void | jo_voxel_decrease_view_distance (jo_voxel *const voxel_data, const jo_fixed distance) |
Decrease view distance (camera.zfar) More... | |
static __jo_force_inline void | jo_voxel_horizon_up (jo_voxel *const voxel_data, const jo_fixed distance) |
Increase horizon height (camera.horizon) More... | |
static __jo_force_inline void | jo_voxel_horizon_down (jo_voxel *const voxel_data, const jo_fixed distance) |
Decrease horizon height (camera.horizon) More... | |
static __jo_force_inline void | jo_voxel_move_up (jo_voxel *voxel_data, const jo_fixed distance) |
Increase camera height (camera.height) More... | |
static __jo_force_inline void | jo_voxel_move_down (jo_voxel *const voxel_data, const jo_fixed distance) |
Decrease camera height (camera.height) More... | |
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) More... | |
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) More... | |
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) More... | |
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) More... | |
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 |
|
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 | ( | 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 |