0.3.1

Macros

#define SCREEN_WIDTH   352
 Not yet documented.
 
#define SCREEN_HEIGHT   224
 Not yet documented.
 

Functions

void mic3d_init (workarea_mic3d_t *workarea)
 Initialize Mic3D.
 
void camera_type_set (camera_type_t type)
 Set the camera type.
 
void camera_lookat (const camera_t *camera)
 Not yet documented.
 
void camera_moveto (const camera_t *camera)
 Move the camera.
 
fix16_mat43_tcamera_matrix_get (void)
 Get the camera matrix.
 
void render_enable (render_flags_t flags)
 Enable render flag(s).
 
void render_disable (render_flags_t flags)
 Disable render flag(s).
 
void render_flags_set (render_flags_t flags)
 Set flag(s).
 
void render_perspective_set (angle_t fov_angle)
 Set the perspective horizontal FOV angle.
 
void render_orthographic_set (fix16_t scale)
 Set the size of the orthographic view.
 
void render_isometric_set (angle_t view_angle)
 Set the isometric view angle.
 
void render_near_level_set (uint32_t level)
 Set the position of the near plane using a level value.
 
void render_far_level_set (uint32_t level)
 Set the position of the far plane using a level value.
 
void render_sort_depth_set (sort_list_t *sort_list_buffer, uint16_t count)
 Set the sort list buffer and sort depth.
 
void render_start (void)
 Start rendering.
 
void render_end (void)
 End rendering.
 
void render_matrix_calculate (const fix16_mat43_t *world_matrix, fix16_mat43_t *view_matrix)
 Calculate the view matrix given a world matrix.
 
void render_mesh_xform (const mesh_t *mesh, const fix16_mat43_t *world_matrix)
 Render a mesh_t.
 
void render_cmdt_insert (const vdp1_cmdt_t *cmdt, fix16_t depth_z)
 Insert a vdp1_cmdt_t at a depth.
 
void render_cmdt_nocheck_insert (const vdp1_cmdt_t *cmdt, fix16_t depth_z)
 Insert a vdp1_cmdt_t at a depth.
 
vdp1_cmdt_trender_cmdts_alloc (uint32_t count)
 Not yet documented.
 
void render_points_xform (const fix16_mat43_t *world_matrix, const fix16_vec3_t *points, uint32_t count, xformed_point_t *xformed_points)
 Transform points.
 
void render_debug_log (char *buffer, size_t len)
 Not yet documented.
 
int32_t depth_value_normalize (fix16_t z)
 Normalize the Z value relative to the sort depth set by.
 
int16_t depth_min_calculate (const int16_t *z_values)
 Given 4 z_values, calculate the unnormalized Z value closest to the camera.
 
int16_t depth_max_calculate (const int16_t *z_values)
 Given 4 z_values, calculate the unnormalized Z value furthest from the camera.
 
int16_t depth_center_calculate (const int16_t *z_values)
 Give 4 z_values, calculate the center Z point.
 
void clipping_calculate (const int16_vec2_t *screen_points, clipping_t *clipping)
 Given 4 screen_points, calculate the clipping flags.
 
void tlist_set (const texture_t *textures, uint16_t count)
 Set the texture list of count.
 
const texture_ttlist_get (void)
 Get the current texture list.
 
void tlist_unset (void)
 Unset the current texture list.
 
void light_gst_set (vdp1_gouraud_table_t *gouraud_tables, uint32_t count, vdp1_vram_t vram_base)
 Not yet documented.
 
void gst_set (vdp1_vram_t vram_base)
 Not yet documented.
 
void gst_unset (void)
 Not yet documented.
 
void gst_put (const vdp1_gouraud_table_t *gouraud_tables, uint32_t put_count)
 Not yet documented.
 
void gst_put_wait (void)
 Not yet documented.
 
void mic3d_mdl_patch (mic3d_mdl_t *mdl)
 Given a mdl, patch pointers.
 

Macro Definition Documentation

◆ SCREEN_WIDTH

#define SCREEN_WIDTH   352

Not yet documented.

Todo:
Hard coded screen resolution needs to be removed.

◆ SCREEN_HEIGHT

#define SCREEN_HEIGHT   224

Not yet documented.

Todo:
Hard coded screen resolution needs to be removed.