1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-25 17:54:15 +00:00
oot/include
Kenix3 353684c638
ovl_demo_effect 100% OK (#466)
* Fully decompiles demo_effect actor.

* Formats z_demo_effect.c

* GET_ACTOR_TYPE is renamed to GET_EFFECT_TYPE

* Implements OPEN_DISPS macros for all draw functions.

* Fixes ugly float values

* Removes unnecessary union structs in the DemoEffect actor struct

* Renames DemoEffect SkelAnimeCurve member to skelCurve

* Names initObjectBankIndex DemoEffect struct member

* Renames jewel display list holders

* Renames initialization function pointers to initUpdateFunc and initDrawFunc

* Renames primitive and environment color DemoEffect struct members.

* Fixes a couple missed floats.

* Renames most draw and update functions.

* Finishes naming all update functions.

* Adds additional SFX defines.

* Renames the rest of the functions

* Renames all external object display lists and vertex references

* Renames DemoEffect global data variables

* Renames DemoEffect Medal function to GetItem because it's used by LightArrows too

* Fixes DemoEffect Timewarp_Timeblock documentation.

* DemoEffect_TimewarpTimeblock updates shrink functions to use decimal

* Converts DemoEffect hex to decimal where appopriate

* Names the rest of DemoEffect struct members.

* Names DemoEffect triforceSpot crystalLightOpacity

* Adds DemoEffect enums for light effect color and god lgt types.

* Renames DemoEffect_UpdateBlueOrb to DemoEffect_UpdateBlueOrbGrow

* Fixes compiler warning in DemoEffect_JewelSparkle

* Renames DemoEffect_MedalSparkle argument

* Reformatting DemoEffect struct offset comments.

* Formats z_demo_effect

* Updates DemoEffect oGfxCtx to use the new macros.

* Adds comments detailing what each function in the DemoEffect system does.

* Removes z_demo_effect.data.s

* Renames DemoEffect global variables and sets them to static

* Removes pointer from DemoEffect function references

* Removes unncecessary default: break; statements in DemoEffect

* Converts rotation values to hex in DemoEffect

* DemoEffect effectFlags now uses ~1 rather than 65534

* DemoEffect_DrawGodLgt now uses a cleaner conditional statement

* eventChkInf in DemoEffect now uses 1 << 9 and 1 << 11

* DemoEffect now uses VT macros.

* Converts DemoEffect colors to hex.

* Changes M_PI / 32768.0f to M_PI / 0x8000

* Updates demo_effect enums to be all caps

* ovl_demo_effect reloc info is now included via build process rather than included from original asm

* Adds param packing macro

* DemoEffect struct unions are now typedef'd outside of the main struct

* Reformats DemoEffect sJewelSparkleColors

* Removes an if(globalCtx){} in DemoEffect_Init

* Removes ActorFunc cast in DemoEffect_Wait

* Removes unncessary comment in DemoEffect_MedalSparkle

* Timer check in DemoEffect_UpdateLightRingShrinking now uses <= 255 rather than < 256

* Removes unnecessary comment in DemoEffect_SetJewelColor

* Removes unncessary comment in DemoEffect_MoveJewelActivateDoorOfTime

* Converts an angle to hex in DemoEffect_MoveJewelActivateDoorOfTime

* Converts a while to for loop in DemoEffect_JewelSparkle

* Moves stack variables in DemoEffect_UpdateDust to a new line for each one

* Removes globalCtx2 assignment to the beginning of the function in DemoEffect_DrawJewel

* Removes unnecessary comment in DemoEffect_DrawCrystalLight

* No longer wrapping rotation reset in if(1){} in DemoEffect_DrawGodLgt

* Converts DemoEffect if statements to use != 0 and == 0 when non-boolean ints are checked.

* DemoEffect initDrawFunc now uses type ActorFunc rather than DemoEffectFunc

* review 2

Co-authored-by: fig <fig02srl@gmail.com>
2020-12-07 12:48:29 -05:00
..
ultra64 libultra cleanup (#215) 2020-10-03 11:22:44 -04:00
alloca.h libultra cleanup (#215) 2020-10-03 11:22:44 -04:00
bgm.h First proper commit. 2020-03-17 00:31:30 -04:00
color.h All Effect Overlays and z_effect_soft_sprite_old_init.c OK (#396) 2020-09-29 20:18:46 -04:00
command_macros_base.h Create Macros for Cutscene Data (#63) 2020-05-20 07:37:28 -04:00
fp.h libultra cleanup (#215) 2020-10-03 11:22:44 -04:00
functions.h ovl_demo_effect 100% OK (#466) 2020-12-07 12:48:29 -05:00
global.h First proper commit. 2020-03-17 00:31:30 -04:00
ichain.h Partially format header files 2020-03-22 22:50:15 +01:00
initvars.h Decompile most effect files in "code" (#144) 2020-05-18 14:24:00 -04:00
macro.inc First proper commit. 2020-03-17 00:31:30 -04:00
macros.h ovl_Door_Shutter OK (#413) 2020-12-03 16:55:01 -05:00
math.h libultra cleanup (#215) 2020-10-03 11:22:44 -04:00
regs.h decompile z_camera (#398) 2020-12-06 17:39:47 -05:00
segment_symbols.h libultra cleanup (#215) 2020-10-03 11:22:44 -04:00
sfx.h Various SFX fixes (#237) 2020-07-04 23:30:21 -04:00
stdarg.h libultra cleanup (#215) 2020-10-03 11:22:44 -04:00
stdbool.h Partially format header files 2020-03-22 22:50:15 +01:00
stddef.h Partially format header files 2020-03-22 22:50:15 +01:00
stdlib.h libultra cleanup (#215) 2020-10-03 11:22:44 -04:00
ultra64.h libultra cleanup (#215) 2020-10-03 11:22:44 -04:00
unk.h Decompile z_play.c and Match/Document some of z_view.c (#74) 2020-04-16 17:36:12 -04:00
variables.h decompile z_camera (#398) 2020-12-06 17:39:47 -05:00
vt.h Partially format header files 2020-03-22 22:50:15 +01:00
z64.h decompile z_camera (#398) 2020-12-06 17:39:47 -05:00
z64actor.h libultra cleanup (#215) 2020-10-03 11:22:44 -04:00
z64animation.h SkelAnime "Skeleton" Documentation Pass (#497) 2020-12-01 22:19:56 -05:00
z64audio.h Fix prototype for Audio_PlaySoundGeneral and fix related types in structs (#481) 2020-11-16 03:31:08 -05:00
z64camera.h decompile z_camera (#398) 2020-12-06 17:39:47 -05:00
z64collision_check.h libultra cleanup (#215) 2020-10-03 11:22:44 -04:00
z64cutscene.h libultra cleanup (#215) 2020-10-03 11:22:44 -04:00
z64cutscene_commands.h libultra cleanup (#215) 2020-10-03 11:22:44 -04:00
z64dma.h libultra cleanup (#215) 2020-10-03 11:22:44 -04:00
z64effect.h libultra cleanup (#215) 2020-10-03 11:22:44 -04:00
z64item.h Decompile Player (#387) 2020-09-18 21:45:39 -04:00
z64light.h SkelAnime "Skeleton" Documentation Pass (#497) 2020-12-01 22:19:56 -05:00
z64math.h decompile z_camera (#398) 2020-12-06 17:39:47 -05:00
z64object.h Partially format header files 2020-03-22 22:50:15 +01:00
z64player.h SkelAnime "Skeleton" Documentation Pass (#497) 2020-12-01 22:19:56 -05:00
z64save.h Decompile DemoEc 1 non matching (#479) 2020-12-05 21:02:55 -05:00
z64scene.h decompile z_camera (#398) 2020-12-06 17:39:47 -05:00
z64transition.h libultra cleanup (#215) 2020-10-03 11:22:44 -04:00