|
Untitled
|
Go to the source code of this file.
Macros | |
| #define | M_PI 3.14159265358979323846f |
| #define | M_TAU (2.0f * M_PI) |
| #define | CAST_VEC(vec, type) |
| #define | REMOVE_FROM_VEC(vec, index, type) |
| #define | SHIFT_VEC_RIGHT(vec, index, type) |
| #define | REMOVE_FROM_ARR(arr, index, count) |
| #define | PRINT_VEC2N(vec) |
| #define | PRINT_VEC3(vec, a, b, c) |
| #define | PRINT_VEC3N(vec) |
| #define | PRINT_VEC4N(vec) |
| #define M_PI 3.14159265358979323846f |
Definition at line 52 of file utilities.h.
Referenced by bake_reflection_probes(), build_light_bvh(), generate_bounce(), generate_sphere_dir(), init_bandpass(), init_normalized_lpf(), make_projection(), process_probe_chunk(), process_sdl_event(), render_mat4_widget(), render_obb_widget(), update_light_camera(), wrap_angle_pi(), and write_point_light_shadows().
| #define M_TAU (2.0f * M_PI) |
Definition at line 55 of file utilities.h.
Referenced by wrap_angle_pi().
| #define CAST_VEC | ( | vec, | |
| type ) |
Definition at line 134 of file utilities.h.
Referenced by a_star_aportal(), add_all_meshes_to_buffer(), add_all_text_boxes_to_draw_buffer(), add_horizon_face_to_hull_faces(), add_mesh_to_buffer(), add_text_box(), add_uv_island_to_lightmap(), align_text_box_label(), allocate_lightmap_ssbo(), assign_uvs(), bake_lighting_probe_volume(), bake_lightmap(), bake_reflection_probes(), bind_dynamic_shader(), bind_material(), build_adjacency_map(), build_light_bvh(), build_uv_islands(), calc_mesh_index_size(), calc_mesh_size(), check_audio_pv(), check_face_visibility(), check_horizon_edges(), check_lighting_pv(), clean_up_hull(), clip_tri_against_plane(), clip_triangle(), compute_mesh_hulls(), container_is_valid(), create_entity(), create_physics_component(), create_text_box(), create_ui_container(), create_ui_element(), deduplicate(), delete_text_box(), delete_ui_container(), delete_ui_element(), destroy_asset_instance(), determine_closest_rprobes(), determine_light_visibility_per_mesh(), determine_mesh_visibility(), determine_text_box_dimensions(), ESTATE_chair_interact(), execute_aportal_undo(), execute_aprobe_undo(), execute_globals_undo(), execute_light_undo(), execute_lprobe_undo(), execute_mesh_node_undo(), execute_rprobe_undo(), execute_text_box_undo(), execute_ui_container_undo(), execute_ui_element_undo(), execute_ui_menu_undo(), expand_hull(), fill_buffer_with_mesh_tri(), fill_index_buffer_mesh(), fill_vertex_buffer_mesh(), find_animation(), find_closest_visible_aportal(), find_free_mn(), find_mn_by_name(), get_text_box_from_coords(), get_ui_element_from_coords(), GPU_unwrap_mesh_to_buffers(), GPU_upload_scene_data(), GPU_upload_ui_elements(), handle_ui_event(), handle_ui_selection_event(), heap_pop(), heap_push(), incremental_hull(), init_lightmap_data(), init_mesh(), init_mesh_tri_bvh(), init_new_asset_instance(), init_PC(), init_player(), init_scene_bvh(), init_uv_islands(), interpolate_nearest_aprobes(), LM_allocate_empty_mns(), LM_regenerate_texels(), load_aportals(), load_gltf(), load_gltf_texture(), load_lightmap_from_binary(), load_ui(), main(), MN_INIT(), move_element_to_menu(), move_text_box_to_menu(), pathfind_audio_occlusion(), PC_find_collision(), PC_process_collision_node(), PC_resolve_impulse(), PC_resolve_impulse_static(), PC_traverse_scene_bvh(), pick_lowest_point(), play_animation(), player_find_collision(), player_resolve_impulse(), player_resolve_impulse_static(), populate_draw_commands(), process_collision_node(), process_sdl_event(), query_probe_volume(), ray_traverse_mesh_bvh(), ray_traverse_scene_bvh(), raycast_scene(), read_mesh_node(), reassign_elements_to_container(), recalculate_audio_portal_paths(), remove_audio_portal(), render(), render_all_draw_commands(), render_asset_instance_menu(), render_audio_menu(), render_editor_menu(), render_light_menu(), render_lprobe_menu(), render_main_menu(), render_material_menu(), render_mesh_aabbs_from_root(), render_mn_menu(), render_text_menu(), render_to_cubemap_face(), render_ui_menu(), resolve_collisions(), retrieve_asset_by_name(), retrieve_mesh_by_name(), save_aportals(), save_lightmap_to_binary(), save_ui(), scene_load(), scene_load_volumes(), scene_save(), search_collisions_from_hull(), search_collisions_from_pc(), setup_initial_hull_points(), SKIN_INIT(), subdivide_light_bvh(), subdivide_mesh_tri_bvh(), subdivide_scene_bvh(), toggle_performance_overlay(), update_body_from_legs(), update_performance_overlay(), update_physics_components(), update_scene_nodes(), update_skin_matrices(), update_ui_state(), upload_bake_lights_gpu(), upload_instance_data(), upload_instances(), upload_joint_matrices(), upload_lights(), upload_material_data(), walk_coplanar_adjacency(), write_mesh_node(), and write_point_light_shadows().
| #define REMOVE_FROM_VEC | ( | vec, | |
| index, | |||
| type ) |
Definition at line 276 of file utilities.h.
Referenced by execute_aprobe_undo(), execute_light_undo(), execute_lprobe_undo(), execute_rprobe_undo(), expand_hull(), incremental_hull(), remove_audio_portal(), render_audio_menu(), render_light_menu(), and render_lprobe_menu().
| #define SHIFT_VEC_RIGHT | ( | vec, | |
| index, | |||
| type ) |
Definition at line 284 of file utilities.h.
Referenced by execute_aportal_undo(), execute_aprobe_undo(), execute_lprobe_undo(), and execute_rprobe_undo().
| #define REMOVE_FROM_ARR | ( | arr, | |
| index, | |||
| count ) |
Definition at line 292 of file utilities.h.
Referenced by EPA_expand_hull(), remove_element_from_container(), and remove_text_box_from_container().
| #define PRINT_VEC2N | ( | vec | ) |
Definition at line 299 of file utilities.h.
| #define PRINT_VEC3 | ( | vec, | |
| a, | |||
| b, | |||
| c ) |
Definition at line 302 of file utilities.h.
| #define PRINT_VEC3N | ( | vec | ) |
Definition at line 305 of file utilities.h.
Referenced by epa(), EPA_add_horizon_face_to_hull_faces(), and recalculate_audio_portal_paths().
| #define PRINT_VEC4N | ( | vec | ) |
Definition at line 308 of file utilities.h.
| int vector_push | ( | Vector * | v, |
| void * | o ) |
Definition at line 25 of file utilities.c.
References Vector::buffer, Vector::capacity, Vector::count, Vector::type_size, vector_alloc(), and vector_push().
Referenced by vector_push().
| void * vector_expand | ( | Vector * | v, |
| size_t | i ) |
Definition at line 49 of file utilities.c.
References Vector::buffer, Vector::capacity, Vector::count, Vector::type_size, vector_alloc(), and vector_expand().
Referenced by a_star_aportal(), add_horizon_face_to_hull_faces(), add_image_to_registry(), add_mesh_to_buffer(), add_text_box(), build_adjacency_map(), build_light_bvh(), build_uv_islands(), check_face_visibility(), check_horizon_edges(), clean_up_hull(), clip_tri_against_plane(), compute_mesh_hulls(), create_menu(), deduplicate(), find_free_in_vector(), find_free_mn(), GPU_unwrap_mesh_to_buffers(), incremental_hull(), init_default_textures(), init_globals(), init_mesh(), init_mesh_tri_bvh(), init_new_audio_portal(), init_new_material(), init_player(), init_scene_bvh(), init_vertex_layouts(), load_filenames(), load_gltf(), perform_clip(), read_json_msdf(), recalculate_audio_portal_paths(), render_audio_menu(), render_light_menu(), render_lprobe_menu(), setup_initial_hull_points(), subdivide_light_bvh(), subdivide_mesh_tri_bvh(), subdivide_scene_bvh(), vector_expand(), and walk_coplanar_adjacency().
Definition at line 97 of file utilities.c.
References mat4::a0, mat4::a1, mat4::a2, mat4::a3, mat4::b0, mat4::b1, mat4::b2, mat4::b3, mat4::c0, mat4::c1, mat4::c2, mat4::c3, compose_2d_transform(), mat4::d0, mat4::d1, mat4::d2, mat4::d3, vec2::x, and vec2::y.
Referenced by compose_2d_transform(), GPU_upload_singular_element(), and GPU_upload_singular_text_box().
| uint16_t float32_to_float16 | ( | float | f | ) |
Definition at line 110 of file utilities.c.
References float32_to_float16().
Referenced by float32_to_float16().
| void init_vector | ( | Vector * | v, |
| size_t | i, | ||
| size_t | type_size ) |
Definition at line 74 of file utilities.c.
References Vector::buffer, Vector::capacity, Vector::count, init_vector(), and Vector::type_size.
Referenced by a_star_aportal(), add_all_meshes_to_buffer(), add_all_text_boxes_to_draw_buffer(), build_adjacency_map(), build_light_bvh(), build_uv_islands(), clean_up_hull(), clip_triangle(), compute_mesh_hulls(), deduplicate(), FILE_DIR_REGISTRY_INIT(), FONTS_INIT(), GPU_upload_scene_data(), incremental_hull(), init_globals(), init_lightmap_data(), init_mesh(), init_mesh_tri_bvh(), init_new_audio_portal(), init_player(), init_scene_bvh(), init_vector(), init_vertex_layouts(), load_aportals(), load_gltf(), load_lightmap_from_binary(), load_ui(), MN_INIT(), read_alloc_vector(), read_vector(), recalculate_audio_portal_paths(), scene_load(), setup_initial_hull_points(), SKIN_INIT(), and UI_INIT().
Definition at line 318 of file utilities.c.
References triangle_area(), vec3::x, vec3::y, and vec3::z.
Referenced by assign_uvs(), build_light_bvh(), build_uv_islands(), compute_mesh_hulls(), triangle_area(), and walk_coplanar_adjacency().
Definition at line 330 of file utilities.c.
References is_similar_plane(), and vec3_dot().
Referenced by compute_mesh_hulls(), and is_similar_plane().
Definition at line 246 of file utilities.c.
References test_sphere_aabb(), vec3_clamp(), vec3_dot(), and vec3_sub().
| void compute_convex_hull | ( | vec3 * | points, |
| int | count, | ||
| vec3 * | out_hull, | ||
| int * | out_count, | ||
| vec3 | normal ) |
Definition at line 676 of file utilities.c.
References ccw(), ccwr(), compute_convex_hull(), leftmost_point(), leftmost_pointr(), and vec3::z.
Referenced by compute_convex_hull().
| void compute_hull_faces | ( | vec3 * | points, |
| size_t * | indices, | ||
| size_t | count, | ||
| size_t * | out_hull, | ||
| size_t * | out_count, | ||
| vec3 | normal ) |
Definition at line 718 of file utilities.c.
References B, ccwv2(), compute_hull_faces(), leftmost_pointv2(), vec3_cross(), vec3_dot(), vec3_normalize(), vec2::x, vec2::y, and vec3::z.
Referenced by compute_hull_faces(), and compute_mesh_hulls().
References aabbs_intersect(), calculate_aabb_bounds(), calculate_aabb_extents(), closest_point_segment(), closest_point_triangle(), compute_3d_barycentric(), compute_aabb_from_points(), compute_barycentric(), compute_hull_centroid(), fbm(), generate_bounce(), generate_sphere_dir(), mesh_faces_are_contiguous(), project_point_plane(), ray_intersects_triangle(), transform_aabb_by_model_matrix(), transform_aabb_by_model_matrix_rotation(), transform_aabb_by_position(), triangles_are_contiguous(), vec3_equal(), and vec4_equal().
Referenced by compute_hull_centroid().
| void calculate_aabb_extents | ( | AABB * | aabb | ) |
Definition at line 298 of file utilities.c.
References calculate_aabb_extents(), AABB::center, AABB::extents, AABB::max_x, AABB::max_y, AABB::max_z, AABB::min_x, AABB::min_y, AABB::min_z, vec3::x, vec3::y, and vec3::z.
Referenced by build_light_bvh(), calculate_aabb_extents(), compute_aabb_from_points(), compute_hull_centroid(), load_gltf(), subdivide_light_bvh(), subdivide_mesh_tri_bvh(), and subdivide_scene_bvh().
| void calculate_aabb_bounds | ( | AABB * | aabb | ) |
Definition at line 305 of file utilities.c.
References calculate_aabb_bounds(), AABB::center, AABB::extents, AABB::max_x, AABB::max_y, AABB::max_z, AABB::min_x, AABB::min_y, AABB::min_z, vec3::x, vec3::y, and vec3::z.
Referenced by build_light_bvh(), calculate_aabb_bounds(), compute_hull_centroid(), init_player(), process_sdl_event(), render_aabb_widget(), render_light_menu(), and transform_aabb_by_position().
Definition at line 768 of file utilities.c.
References calculate_aabb_extents(), compute_aabb_from_points(), AABB::max_x, AABB::max_y, AABB::max_z, AABB::min_x, AABB::min_y, AABB::min_z, vec3::x, vec3::y, and vec3::z.
Referenced by compute_aabb_from_points(), compute_hull_centroid(), incremental_hull(), and init_mesh_tri_bvh().
Definition at line 276 of file utilities.c.
References aabbs_intersect(), AABB::max_x, AABB::max_y, AABB::max_z, AABB::min_x, AABB::min_y, and AABB::min_z.
Referenced by aabbs_intersect(), compute_hull_centroid(), PC_traverse_collision_bvh(), PC_traverse_scene_bvh(), and player_find_collision().
Definition at line 466 of file utilities.c.
References calculate_aabb_bounds(), AABB::center, transform_aabb_by_position(), and vec3_add().
Referenced by compute_hull_centroid(), player_find_collision(), and transform_aabb_by_position().
Definition at line 474 of file utilities.c.
References AABB::center, AABB::extents, mat4_mul_direction(), mat4_mul_point(), AABB::max_x, AABB::max_y, AABB::max_z, AABB::min_x, AABB::min_y, AABB::min_z, transform_aabb_by_model_matrix(), vec3::x, vec3::y, and vec3::z.
Definition at line 499 of file utilities.c.
References AABB::center, AABB::extents, mat4_mul_direction(), AABB::max_x, AABB::max_y, AABB::max_z, AABB::min_x, AABB::min_y, AABB::min_z, transform_aabb_by_model_matrix_rotation(), vec3::x, vec3::y, and vec3::z.
Referenced by compute_hull_centroid(), and transform_aabb_by_model_matrix_rotation().
| float fbm | ( | vec3 | p | ) |
Definition at line 221 of file utilities.c.
References fbm(), fbm_noise(), vec3_add(), and vec3_scale().
Referenced by compute_hull_centroid(), fbm(), and precompute_fbm_texture().
Definition at line 525 of file utilities.c.
References vec4_equal(), vec4::w, vec4::x, vec4::y, and vec4::z.
Referenced by check_equivalencyv4(), compute_hull_centroid(), and vec4_equal().
Definition at line 541 of file utilities.c.
References vec3_equal(), vec3::x, vec3::y, and vec3::z.
Referenced by check_equivalencyv3(), check_horizon_edges(), clean_up_hull(), clip_manifold(), compute_hull_centroid(), compute_mesh_hulls(), deduplicate(), EPA_check_horizon_edges(), GJK(), incremental_hull(), mesh_faces_are_contiguous(), triangles_are_contiguous(), and vec3_equal().
Definition at line 557 of file utilities.c.
References A, B, C, Point::pos, Triangle::pts, triangles_are_contiguous(), and vec3_equal().
Referenced by compute_hull_centroid(), and triangles_are_contiguous().
| bool compute_barycentric | ( | const vec2 | uv0, |
| const vec2 | uv1, | ||
| const vec2 | uv2, | ||
| const vec2 | p, | ||
| float * | b0, | ||
| float * | b1, | ||
| float * | b2 ) |
Definition at line 385 of file utilities.c.
References compute_barycentric(), vec2::x, and vec2::y.
Referenced by compute_barycentric(), and compute_hull_centroid().
| bool ray_intersects_triangle | ( | vec3 | origin, |
| vec3 | dir, | ||
| vec3 | a, | ||
| vec3 | b, | ||
| vec3 | c, | ||
| float * | out_t, | ||
| vec3 * | out_hit_point, | ||
| vec3 * | barycentric ) |
Definition at line 341 of file utilities.c.
References ray_intersects_triangle(), vec3_add(), vec3_cross(), vec3_dot(), vec3_scale(), vec3_sub(), vec3::x, vec3::y, and vec3::z.
Definition at line 409 of file utilities.c.
References compute_3d_barycentric(), vec3_cross(), vec3_length(), and vec3_sub().
| vec3 generate_bounce | ( | uint32_t | i, |
| uint32_t | N ) |
Definition at line 429 of file utilities.c.
References generate_bounce(), M_PI, and rand().
Referenced by compute_hull_centroid(), and generate_bounce().
| vec3 generate_sphere_dir | ( | int | i, |
| int | N ) |
Definition at line 258 of file audio_probe_bake.comp.
References generate_sphere_dir(), and M_PI.
Referenced by compute_hull_centroid(), generate_sphere_dir(), main(), and trace_path().
Definition at line 578 of file utilities.c.
References MeshFace::indices, mesh_faces_are_contiguous(), and vec3_equal().
Referenced by compute_hull_centroid(), compute_mesh_hulls(), and mesh_faces_are_contiguous().
Definition at line 1235 of file utilities.c.
References project_point_plane(), vec3_dot(), vec3_scale(), and vec3_sub().
Referenced by compute_hull_centroid(), epa(), point_triangle_distance(), and project_point_plane().
Definition at line 1327 of file utilities.c.
References closest_point_triangle(), vec3_add(), vec3_dot(), vec3_scale(), and vec3_sub().
Referenced by clip_manifold(), closest_point_triangle(), collision(), and compute_hull_centroid().
Definition at line 1244 of file utilities.c.
References clamp(), closest_point_segment(), vec3_add(), vec3_dot(), vec3_scale(), and vec3_sub().
Referenced by clip_manifold(), closest_point_segment(), compute_hull_centroid(), and point_triangle_distance().
|
inline |
Definition at line 57 of file utilities.h.
References M_PI, M_TAU, and wrap_angle_pi().
Referenced by process_sdl_event(), update_angular_spring(), and wrap_angle_pi().
Definition at line 65 of file utilities.h.
References SDF_circle(), vec2_length(), and vec2_sub().
Definition at line 68 of file utilities.h.
References SDF_rect(), size, vec2_add(), vec2_length(), vec2_scale(), vec2_sub(), vec2::x, and vec2::y.
Definition at line 75 of file utilities.h.
References MIN, vec3_min(), vec3::x, vec3::y, and vec3::z.
Referenced by vec3_min().
Definition at line 83 of file utilities.h.
References MAX, vec3_max(), vec3::x, vec3::y, and vec3::z.
Referenced by vec3_max().
Definition at line 91 of file utilities.h.
References clamp(), vec3_clamp(), vec3::x, vec3::y, and vec3::z.
Referenced by test_sphere_aabb(), and vec3_clamp().
Definition at line 100 of file utilities.h.
References vec2_inside_bounds(), vec2::x, and vec2::y.
Referenced by get_text_box_from_coords(), and vec2_inside_bounds().
| int clip_against_plane | ( | const vec3 * | in, |
| int | in_count, | ||
| vec3 * | out, | ||
| vec3 | plane_point, | ||
| vec3 | plane_normal ) |
Definition at line 794 of file utilities.c.
References A, B, clip_against_plane(), vec3_add(), vec3_dot(), vec3_scale(), and vec3_sub().
Referenced by clip_against_plane(), and perform_clip().
| int clip_pts_against_plane | ( | ClipVertex * | in, |
| int | in_count, | ||
| ClipVertex * | out, | ||
| vec3 | plane_point, | ||
| vec3 | plane_normal ) |
Definition at line 838 of file utilities.c.
References A, B, clip_pts_against_plane(), ClipVertex::edge0, ClipVertex::edge1, ClipVertex::p, vec3_add(), vec3_dot(), vec3_scale(), and vec3_sub().
Referenced by clip_manifold(), and clip_pts_against_plane().
|
inline |
Definition at line 121 of file utilities.h.
References calculate_polygon_area(), n, and vec3::x.
Referenced by calculate_polygon_area().
|
inline |
|
inline |
Definition at line 152 of file utilities.h.
References mat3::a0, mat3::a1, mat3::a2, mat3::b0, mat3::b1, mat3::b2, mat3::c0, mat3::c1, mat3::c2, and print_mat3().
Referenced by print_mat3(), and print_obb().
Definition at line 165 of file utilities.h.
References vec4_to_vec3(), vec4::x, vec4::y, and vec4::z.
Referenced by build_light_bvh(), load_gltf(), PC_resolve_impulse(), PC_resolve_impulse_static(), player_resolve_impulse(), player_resolve_impulse_static(), process_input(), and vec4_to_vec3().
Definition at line 166 of file utilities.h.
References vec3_to_vec4(), vec3::x, vec3::y, and vec3::z.
Referenced by bake_reflection_probes(), load_gltf(), precompute_ssao_kernel(), update_camera(), vec3_to_vec4(), and write_point_light_shadows().
|
inline |
Definition at line 168 of file utilities.h.
References AABB::center, AABB::extents, AABB::max_x, AABB::max_y, AABB::max_z, AABB::min_x, AABB::min_y, AABB::min_z, print_aabb(), vec3::x, vec3::y, and vec3::z.
Referenced by init_PC(), and print_aabb().
|
inline |
Definition at line 175 of file utilities.h.
References OBB::center, OBB::extents, print_mat3(), print_obb(), OBB::rot, vec3::x, vec3::y, and vec3::z.
Referenced by print_obb().
Definition at line 183 of file utilities.h.
References frisvad_basis(), n, vec3::x, vec3::y, and vec3::z.
Definition at line 201 of file utilities.h.
References AABB::center, AABB::max_x, AABB::max_y, AABB::max_z, AABB::min_x, AABB::min_y, AABB::min_z, translate_aabb(), vec3_add(), vec3::x, vec3::y, and vec3::z.
Referenced by translate_aabb().
Definition at line 214 of file utilities.h.
References AABB::max_x, AABB::max_y, AABB::max_z, AABB::min_x, AABB::min_y, AABB::min_z, point_in_aabb(), vec3::x, vec3::y, and vec3::z.
Referenced by point_in_aabb(), and traverse_collision_bvh().
Definition at line 225 of file utilities.h.
References Vector::buffer, Vector::capacity, copy_vector(), and Vector::type_size.
Referenced by copy_vector().
Definition at line 237 of file utilities.h.
References Plane::d, find_hull_point_z_from_plane(), Plane::normal, vec2::x, vec3::x, vec2::y, vec3::y, and vec3::z.
Referenced by find_hull_point_z_from_plane().
|
inline |
Definition at line 244 of file utilities.h.
References A, B, C, compute_triangle_normal(), Triangle::normal, Point::pos, Triangle::pts, vec3_cross(), vec3_normalize(), and vec3_sub().
Referenced by compute_triangle_normal().
Definition at line 254 of file utilities.h.
References compute_tri_normal(), vec3_cross(), vec3_normalize(), and vec3_sub().
Referenced by add_horizon_face_to_hull_faces(), compute_tri_normal(), epa(), EPA_add_horizon_face_to_hull_faces(), find_next_direction(), load_gltf(), and setup_initial_hull_points().
|
inline |
Definition at line 264 of file utilities.h.
References Point::pos, print_triangle(), Triangle::pts, vec3::x, vec3::y, and vec3::z.
Referenced by print_triangle().
Definition at line 270 of file utilities.h.
References print_tri(), vec3::x, vec3::y, and vec3::z.
Referenced by print_tri().
Definition at line 313 of file utilities.h.
References mat4_mul_point(), mul_m4_v4(), vec4::w, vec3::x, vec4::x, vec3::y, vec4::y, vec3::z, and vec4::z.
Referenced by build_light_bvh(), clip_manifold(), detect_best_axis_mapping(), generate_capsule_hull_manifold(), GPU_upload_singular_text_box(), mat4_mul_point(), PC_resolve_impulse(), PC_resolve_impulse_static(), player_find_collision(), player_resolve_impulse(), process_collision_node(), ray_traverse_scene_bvh(), raycast_scene(), resolve_collisions(), support_diff(), transform_aabb_by_model_matrix(), update_light_camera(), and update_physics_components().
Definition at line 318 of file utilities.h.
References mat4_mul_pointr(), mul_m4_v4r(), vec4::w, vec3::x, vec4::x, vec3::y, vec4::y, vec3::z, and vec4::z.
Referenced by mat4_mul_pointr().
Definition at line 323 of file utilities.h.
References mat4_mul_direction(), mul_m4_v4(), vec3::x, vec4::x, vec3::y, vec4::y, vec3::z, and vec4::z.
Referenced by clip_manifold(), mat4_mul_direction(), player_find_collision(), process_collision_node(), ray_traverse_scene_bvh(), support(), support_capsule(), transform_aabb_by_model_matrix(), and transform_aabb_by_model_matrix_rotation().
Definition at line 329 of file utilities.h.
References mat3::a0, mat3::a1, mat3::a2, mat3::b0, mat3::b1, mat3::b2, mat3::c0, mat3::c1, mat3::c2, quat_to_mat3(), vec4::w, vec4::x, vec4::y, and vec4::z.
Referenced by quat_to_mat3(), and update_physics_components().
Definition at line 361 of file utilities.h.
References quat_from_axis_angle(), vec4::w, vec3::x, vec4::x, vec3::y, vec4::y, vec3::z, and vec4::z.
Referenced by quat_from_axis_angle(), render_mat4_widget(), and update_physics_components().
Definition at line 371 of file utilities.h.
References quat_copy_sign(), vec4::w, vec4::x, vec4::y, and vec4::z.
Referenced by quat_copy_sign().
Definition at line 384 of file utilities.h.
References quat_mul(), vec4::w, vec4::x, vec4::y, and vec4::z.
Referenced by quat_mul(), and update_physics_components().
Definition at line 394 of file utilities.h.
References mat4::a0, mat4::a1, mat4::a2, and get_mat4_axis_x().
Referenced by get_mat4_axis_x().
Definition at line 397 of file utilities.h.
References mat4::b0, mat4::b1, mat4::b2, and get_mat4_axis_y().
Referenced by get_mat4_axis_y().
Definition at line 400 of file utilities.h.
References mat4::c0, mat4::c1, mat4::c2, and get_mat4_axis_z().
Referenced by get_mat4_axis_z().
Definition at line 403 of file utilities.h.
References mat4::d0, mat4::d1, mat4::d2, and get_mat4_axis_w().
Referenced by get_mat4_axis_w().
|
inline |
Definition at line 430 of file utilities.h.
References mat4_identity().
Referenced by mat4_from_quat(), mat4_identity(), mat4_scale(), mat4_translation(), update_scene_nodes(), upload_instances(), and upload_joint_matrices().
|
inline |
Definition at line 438 of file utilities.h.
References mat3_identity().
Referenced by mat3_identity(), render_audio_menu(), render_lprobe_menu(), and render_obb_widget().
Definition at line 445 of file utilities.h.
References mat4::d0, mat4::d1, mat4::d2, mat4_identity(), mat4_translation(), vec3::x, vec3::y, and vec3::z.
Referenced by compose_trs_from_mesh_node(), compose_trs_from_vectors(), and mat4_translation().
Definition at line 452 of file utilities.h.
References mat4::a0, mat4::b1, mat4::c2, mat4_identity(), mat4_scale(), vec3::x, vec3::y, and vec3::z.
Referenced by compose_trs_from_mesh_node(), compose_trs_from_vectors(), and mat4_scale().
Definition at line 459 of file utilities.h.
References mat4::a0, mat4::a1, mat4::a2, mat4::b0, mat4::b1, mat4::b2, mat4::c0, mat4::c1, mat4::c2, mat4_from_quat(), mat4_identity(), vec4::w, vec4::x, vec4::y, and vec4::z.
Referenced by compose_trs_from_mesh_node(), compose_trs_from_vectors(), and mat4_from_quat().
Definition at line 481 of file utilities.h.
References compose_trs_from_vectors(), m4_mul(), mat4_from_quat(), mat4_scale(), mat4_translation(), and rot().
Referenced by compose_trs_from_vectors(), execute_asset_instance_undo(), init_new_asset_instance(), player_find_collision(), render_mat4_widget(), and update_physics_components().
Definition at line 490 of file utilities.h.
References mat4::a0, mat4::a1, mat4::a2, mat4::b0, mat4::b1, mat4::b2, mat4::c0, mat4::c1, mat4::c2, and mat3_from_mat4().
Referenced by build_light_bvh(), and mat3_from_mat4().
Definition at line 498 of file utilities.h.
References mat3::a0, mat3::a1, mat3::a2, mat3::b0, mat3::b1, mat3::b2, mat3::c0, mat3::c1, mat3::c2, mat3_mul_vec3(), vec3::x, vec3::y, and vec3::z.
Referenced by build_light_bvh(), mat3_mul_vec3(), PC_resolve_impulse(), PC_resolve_impulse_static(), player_resolve_impulse(), player_resolve_impulse_static(), point_in_obb(), pos_to_pv_local(), and update_skeleton().
|
inline |
Definition at line 513 of file utilities.h.
References mat4_transpose().
Referenced by mat4_transpose().
Definition at line 545 of file utilities.h.
References mat3::a0, mat3::a1, mat3::a2, mat3::b0, mat3::b1, mat3::b2, mat3::c0, mat3::c1, mat3::c2, and mat3_transpose().
Referenced by mat3_transpose(), pos_to_pv_local(), and update_physics_components().
Definition at line 559 of file utilities.h.
References mat3::a0, mat3::a1, mat3::a2, mat3::b0, mat3::b1, mat3::b2, mat3::c0, mat3::c1, mat3::c2, and mat3_mul().
Referenced by mat3_mul(), render_obb_widget(), and update_physics_components().
Definition at line 576 of file utilities.h.
References mat3::a0, mat3::a1, mat3::a2, mat3::b0, mat3::b1, mat3::b2, mat3::c0, mat3::c1, mat3::c2, and mat3_inverse_transpose().
Referenced by build_light_bvh(), mat3_inverse_transpose(), and point_in_obb().
Definition at line 600 of file utilities.h.
References OBB_vectors(), and rot().
Referenced by OBB_min_corner(), OBB_vectors(), and PV_step_size().
Definition at line 607 of file utilities.h.
References OBB::center, OBB::extents, OBB_min_corner(), OBB_vectors(), OBB::rot, vec3_add(), vec3_scale(), vec3::x, vec3::y, and vec3::z.
Referenced by bake_audio_probe_volume(), bake_lighting_probe_volume(), and OBB_min_corner().
Definition at line 623 of file utilities.h.
References OBB::center, OBB::extents, mat3_inverse_transpose(), mat3_mul_vec3(), point_in_obb(), OBB::rot, vec3_sub(), vec3::x, vec3::y, and vec3::z.
Referenced by point_in_obb(), and query_probe_volume().
Definition at line 640 of file utilities.h.
References A, B, C, triangle_centroid(), vec3_add(), and vec3_scale().
Referenced by build_light_bvh(), build_uv_islands(), and triangle_centroid().