summaryrefslogtreecommitdiff
path: root/ZAPD/ZDisplayList.cpp
AgeCommit message (Collapse)Author
2021-04-07Add MM scene support (#109)Rozelette
* Enough to get 1 scene OK * More MM progress * Fixes for scenes. 376/401 match * Fix last of MM scenes * Add SetWorldMapVisited * Cleanup * Hopefully fix OOT build * Address feedback * Add macro for rotation flags in MM * remove Align2 * Cleanup * Conditionally use looser alignment only in MM
2021-04-02Add Mtx extraction (#105)Anghelo Carvajal
* ZMtx resource Signed-off-by: Angie <angheloalf95@gmail.com> * remove extra braces Signed-off-by: Angie <angheloalf95@gmail.com> * make dlist extracts mtx Signed-off-by: Angie <angheloalf95@gmail.com> * run format Signed-off-by: angie <angheloalf95@gmail.com>
2021-03-20Add a clang-format config and reformat all source files (#63)Léo Lam
* build: Add genbuildinfo as a dependency for ZAPD object files * Add a clang-format config and reformat all source files The existing code style is mostly preserved; this just makes formatting more consistent and prevents lines from getting too long. * Fix missing includes
2021-03-20Final Warning pass (#99)louist103
* started on basic type errors * Done. For now * remove libgfxd binary * Fix Clang Warnings * Fix2 * Fix rollback of #92 and missed warning in ZCutscene.cpp * ? * add stdexcept to ZResource * Fix make clean * PR fixes * Fix make file stuff * Remove many more errors and remove -Wall * Turns out Globals was used * Final pass Co-authored-by: Fig02 <fig02srl@gmail.com>
2021-03-19Fix all warnings output by Clang++ (#94)louist103
* started on basic type errors * Done. For now * remove libgfxd binary * Fix Clang Warnings * Fix2 * Fix rollback of #92 and missed warning in ZCutscene.cpp * ? * add stdexcept to ZResource * Fix make clean * PR fixes * Fix make file stuff * Remove many more errors and remove -Wall * Turns out Globals was used Co-authored-by: Fig02 <fig02srl@gmail.com>
2021-03-12A few bugfixes (#87)Anghelo Carvajal
* remove extra %i in ZCutscene Signed-off-by: angie <angheloalf95@gmail.com> * Don't extract vertices from a unknown segment. Signed-off-by: Angie <angheloalf95@gmail.com> * Fix SurfaceType in CollisionHeader Signed-off-by: Angie <angheloalf95@gmail.com> * Fix merge issue Signed-off-by: angie <angheloalf95@gmail.com>
2021-03-12Use libgfxd (gfxdis) for display lists (#84)fig02
* start * dlists work * progress * vtx works * texture wip * debugging * palletes sorta working * pal issue sort of fixed * progress * fiix * switching to master * progress * OK * fixes * whitespace * libgfxd update * prep for merge * use new seg2filespace function * vtx
2021-03-07Fix collision extraction from actor's data (#85)Anghelo Carvajal
* Fix collision extraction if it is in actor's data Signed-off-by: Angie <angheloalf95@gmail.com> * Seg2Filespace to avoid duplicated code and rename the macro SEG2FILESPACE to GETSEGOFFSET Also, try to use the macros GETSEGOFFSET and GETSEGNUM as much as possible. Signed-off-by: angie <angheloalf95@gmail.com> * Reverse variables names Signed-off-by: angie <angheloalf95@gmail.com>
2021-01-27Fixed improper usage of color combiner macros, replaced hardcoded gSPMatrix ↵Mr-Wiseguy
values with gbi macros (#81)
2021-01-24Various Display List improvements (#77)Nicholas Estelami
* Zel's F3DEX fix, gsDPSetRenderMode properly implemented * Updated F3DEX to also support render mode * gsDPLoadMultiBlock and gsDPLoadTextureBlock properly supported
2021-01-23WIP F3DEX Support, Bug Fixes, Game definable in XML (#75)Nicholas Estelami
* WIP F3DEX support * Additional work on F3DEX support, fixed bug with actorlist * Fixed crash bug * Adds ZFile attribute "Game" to be able to change the game mode for ZAPD. * Additional changes to support F3DEX * Fixed bug with cullDL and with dlist type selection * F3DEX Opcode fix * Fixed up a few bugs * Cleaned up some code and fixed bug with directory creation. * ZAPD now supports correct bitpacking for gsSPSetOtherMode on F3DEX * Fixes syntax error in ZDisplayList.h * Updates Actor and Object Lists * Updated actor and object list * G_MTX updated for F3DEX * Fixed bug with transition actor list * Updated G_Texture for F3DEX * SW97 maps: Removes actor 0x22, and shifts actors 0x23 and above down by one to match retail enum. * Fixes issue in reuse of actorCount variable in SetActorList::GetActorListArraySize. Co-authored-by: Kenix3
2021-01-19Added in support for ZArray (WIP) and ZVtx. Also cleaned up some of the ↵Nicholas Estelami
virtual functions. (#73)
2021-01-16Several more bug fixes (#71)Nicholas Estelami
- Fixed issue with texture declarations at offset 0. - Fixed issue with display list calls to other segments.
2021-01-15Various bug fixes.Nicholas Estelami
- Fixed bug with `gsDPSetTextureImage` when texture is in 0x80 "segment" (#70) - Fixed bug with RangeStart and RangeEnd not always working properly. - Fixed bug with collision header components at offset 0
2021-01-12Various bug fixes and added functionality (#69)Nicholas Estelami
* Fixed bug with extraction of ci4 textures * Made a bunch of declarations static * Removed manual writes to declarations dictionary from external classes. * Fixed SharpOcarina related bug.
2021-01-08Fixed bug with declarations at 0x0000, and fixed improperly sized palettes. ↵Nicholas Estelami
(#65) * Fixed bug with extraction of ci4 textures * Made a bunch of declarations static * Removed manual writes to declarations dictionary from external classes. * Added a bunch of deconstructors, freed a bunch of stuff * Fixed bug with declarations at 0x0000, and fixed issue with palette sizing. * Fixed VS Lib and Include Dirs
2021-01-08Replace RoomPoly with CollisionPoly (#66)fig02
* small changes * brackets
2021-01-05Made a bunch of declarations static. Removed external writes to declarations ↵Nicholas Estelami
dictionary. (#55) * Fixed bug with extraction of ci4 textures * Made a bunch of declarations static * Avoid unnecessary copies (#46) Pass some parameters by reference to avoid unnecessary copies. When the parameter is intended to be copied into a member variable, pass it by value and move it into the member instead. This doesn't fix every occurrence of the issue but this diff is already getting big so let's stop here for the moment. * Removed manual writes to declarations dictionary from external classes. Co-authored-by: Léo Lam <leo@leolam.fr>
2021-01-05Avoid unnecessary copies (#46)Léo Lam
Pass some parameters by reference to avoid unnecessary copies. When the parameter is intended to be copied into a member variable, pass it by value and move it into the member instead. This doesn't fix every occurrence of the issue but this diff is already getting big so let's stop here for the moment.
2021-01-04Bitconverter now supports more types and should correctly read floating ↵Kenix3
point values. (#49) * Bitconverter now supports more types and should correctly read floating points. * BitConverter now uses a better way to convert between data read from the object to float.
2021-01-04ZAPD now supports multiple verbosity levels (#50)Kenix3
* ZAPD no longer outputs it's name on start up. This wastes CPU cycles and creates unnecessary IO time. ZAPD doesn't need to output this. * Implements verbosity flag to output the ZAPD intro * ZAPD now supports multiple levels of verbosity in output. * Fixes build error for new verbosity setting.
2021-01-01Misc changes (#41)fig02
* fixes * changes * progress * Vertices -> Vtx * done i think
2021-01-01Added in support for player animations (#40)Nicholas Estelami
* Added in support for Player Animations * Fixed up a bunch of non matching issues
2021-01-01No longer using snake case name variables and segment offsets now print to 6 ↵Kenix3
characters (#39)
2020-12-31various changes (#36)fig02
2020-12-30ZAP2 project renamed to ZAPD (#27)Kenix3