* Document projection matrix function
Document function for computing a projection matrix. Used for camera and graphics.
* Fix loop index bug
Fix straightforward loop index bug introduced in last commit
* Style guide updates
Changes to match style recommendations
* Update function variables to camelCase
* Use dOxygen tags
* Use block comment
* Document math functions
* Give all functions in src\racing\math_util.c descriptive names
* Improve documentation for math_util
Improves a number of functions by giving descriptive argument names and comments
* Additional merge
* Fix style issues
update variables / parameters to use camelCase instead of snakeCase
* doxygen and other documentation
* Add doxygen documentation
* Rename mat -> mtx for consistency among matrices
* Theta -> Angle for angles
* Give some arguments more descriptive names
* Partial documentation for calculate_orientation_matrix
Documentation for when cosAxisY is 1 and observations that things break when if it does not equal 1.
* Rename functions
Renamed multiple functions for accuracy or clarity
* doxygen whitespace alignment
Improve readability of doxygen info by aligning text
* Make format check
Formatting updates suggested by make format
* Make skyboxes static
* Change function name
angle_from_coords -> get_angle_between_coords
* Math values renamed
Functions:
render_distance_squared -> distance_if_visible
mtxf_rotation_zxy_translate -> mtxf_rotate_zxy_translate
Arguments:
vecTrans -> translate
* Document many effects
Define effects for
* Braking
* Drifting
* Spinning out (driving and bananas)
* Mini turbos
* Losing at GP
* Tumbling on terrain
* CPU rubberbanding
And substitute some pre-existing defined effect names in place of bit flags
* Replace effect magic numbers with defined values
* Separate effect bit-flags into components
* Document more effects
* Rename some effects
* Replace effect bit_flags with defined values
* Formatting fixes
---------
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
* Document projection matrix function
Document function for computing a projection matrix. Used for camera and graphics.
* Fix loop index bug
Fix straightforward loop index bug introduced in last commit
* Style guide updates
Changes to match style recommendations
* Update function variables to camelCase
* Use dOxygen tags
* Use block comment
* Document math functions
* Give all functions in src\racing\math_util.c descriptive names
* Improve documentation for math_util
Improves a number of functions by giving descriptive argument names and comments
* Additional merge
* Fix style issues
update variables / parameters to use camelCase instead of snakeCase
* doxygen and other documentation
* Add doxygen documentation
* Rename mat -> mtx for consistency among matrices
* Theta -> Angle for angles
* Give some arguments more descriptive names
* Partial documentation for calculate_orientation_matrix
Documentation for when cosAxisY is 1 and observations that things break when if it does not equal 1.
* Rename functions
Renamed multiple functions for accuracy or clarity
* doxygen whitespace alignment
Improve readability of doxygen info by aligning text
* Make format check
Formatting updates suggested by make format
* Make skyboxes static
* Change function name
angle_from_coords -> get_angle_between_coords
* Math values renamed
Functions:
render_distance_squared -> distance_if_visible
mtxf_rotation_zxy_translate -> mtxf_rotate_zxy_translate
Arguments:
vecTrans -> translate
---------
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
* update clang and add action
* try clang on course folder only
* forget two file
* Update course_displaylists.inc.c
* forget few other file
* Update course_vertices.inc.c
* format all code while get it match
* second pass
* format other dir
* disable clang format on bad ido code
* fix some tabulation
* revert format on tool dir
* Update clang-format.yml
* ignore gbi.h
* add some read me instruction
* fix error
* format and fixing error
* Update README.md
---------
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
* Update and rename code_8001F980.c to render_player.c
* Rename code_8001F980.h to render_player.h
* rename import file to render_player
* Update and rename code_80004740.c to save.c
* Rename code_80004740.h to save.h
Mostly relocating rodata from data/* files to the appropriate
asm/nonmatching/* files, although there is some plain data
relocating to be found in here too.
Big change to note is the addition of the code_802AAA70.c file,
split from memory.c. Based on some padding in the ro/data for
memory it seems clear that a split is needed, although it is
not clear that exact spot chosen for the split is correct.
Still, it gets the file padding for the ro/data and text segments
correct so it can't be too wrong.
Also included is an update to the asm_processor tool to support
the .hword directive. I made a PR to the main repo of that
project with an identical change and it was accepted.
Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
* Matches, add permute, and add notice to quick runners
* 80281fa0 matches, render_courses, and create defines for audio
* Renamed 80281fa0.h, func naming, and deleted data_121DA0
* Added clang format
* Matched load_surface_map
* Match func in memory.c
Couple matches functions, an update to a struct, a bunch of header
files adjustments, and some mips_to_c regenerations
Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
Introduce waypoint struct, which code_80005FD0 seems to be
involved with.
Updated several mips_to_c outputs as well.
Signed-off-by: Taggerung <tyler.taggerung@gmail.com>