Commit Graph
75 Commits
Author SHA1 Message Date
Martin Gerhardy 880d8261a7 TWINE: refactored matrices 2020-11-29 23:50:29 +01:00
Martin Gerhardy c7a09011e7 TWINE: replaced magic numbers 2020-11-29 23:50:29 +01:00
Martin Gerhardy df77fff8e8 TWINE: convert member to local var 2020-11-29 23:50:29 +01:00
Martin Gerhardy 78ec56e0c3 TWINE: removed dead code 2020-11-29 23:50:29 +01:00
Martin Gerhardy f0fb127429 TWINE: renamed struct 2020-11-29 23:50:29 +01:00
Martin Gerhardy 1d08ac4ea6 TWINE: renamed structs 2020-11-29 23:50:29 +01:00
Martin Gerhardy 91dc794937 TWINE: split render command buffer handling into several methods 2020-11-29 23:50:29 +01:00
Martin Gerhardy a71b3a3ac0 TWINE: reduced code duplication 2020-11-29 23:50:29 +01:00
Martin Gerhardy a75a08cd0e TWINE: cleanup and refactored rendering code 2020-11-29 23:50:29 +01:00
Martin Gerhardy f5a13ed5a5 TWINE: inlined one of the renderPolygons methods 2020-11-29 23:50:29 +01:00
Martin Gerhardy 1926f690fc TWINE: refactored rendering code 2020-11-29 23:50:29 +01:00
Martin Gerhardy 938b438b0e TWINE: use size of struct for raw buffer arithmetic,...
but not for the reading of the stream data from hqr files - they are fixed, no matter how
the padding and alignment rules of the platform are
2020-11-29 23:50:29 +01:00
Martin Gerhardy fa1808b1c0 TWINE: refactored line rendering 2020-11-29 23:50:28 +01:00
Martin Gerhardy ad8d15d807 TWINE: disabled unused code 2020-11-29 23:50:28 +01:00
Martin Gerhardy 0c2064ede2 TWINE: refactored polygon rendering code 2020-11-29 23:50:28 +01:00
Martin Gerhardy ae97d0bbbe TWINE: refactored polygon rendering code 2020-11-29 23:50:28 +01:00
Martin Gerhardy 3427af227f TWINE: added assert to polygon handling 2020-11-29 23:50:28 +01:00
Martin Gerhardy d992f58cdc TWINE: unified code 2020-11-29 23:50:28 +01:00
Martin Gerhardy b03fd3cba0 TWINE: replaced magic numbers 2020-11-29 23:50:28 +01:00
Martin Gerhardy 55f558a110 TWINE: renamed variables and simplified code 2020-11-29 23:50:28 +01:00
Martin Gerhardy 1d624d2e1f TWINE: cleanup in Renderer::renderModelElements 2020-11-28 01:09:45 +01:00
Martin Gerhardy 61d49da380 TWINE: reduced scope in renderer code 2020-11-28 01:09:44 +01:00
Martin Gerhardy 2b20f54310 TWINE: reduced scope in renderer code 2020-11-28 01:09:44 +01:00
Martin Gerhardy a637786183 TWINE: removed dead code
the if branch was never reached, as currentDepth was 1 everytime
2020-11-28 01:09:44 +01:00
Martin Gerhardy a81e496b7e TWINE: cleanup in Renderer::circleFill 2020-11-28 01:09:44 +01:00
Martin Gerhardy f251a088d5 TWINE: cleanup model data parsing 2020-11-28 01:09:44 +01:00
Martin Gerhardy 808a8712b7 TWINE: code cleanup 2020-11-28 01:09:44 +01:00
Martin Gerhardy 89bc8dcfb2 TWINE: converted member to method parameter 2020-11-28 01:09:44 +01:00
Martin Gerhardy 24ce1e5d3e TWINE: refactored reading model data to stream 2020-11-28 01:09:44 +01:00
Martin Gerhardy 7a11fb592a TWINE: reduced scope 2020-11-28 01:09:44 +01:00
Martin Gerhardy 6f75c8a823 TWINE: removed unused method parameters 2020-11-28 01:09:44 +01:00
Martin Gerhardy 82df68fb11 TWINE: extracted rendering types into dedicated methods 2020-11-28 01:09:44 +01:00
Martin Gerhardy 022aa4b2f4 TWINE: fixed blocky rendering
int64 was a typedef to float in the TwinEngine code
2020-11-26 21:26:26 +01:00
Martin Gerhardy a967242757 TWINE: more Common::Rect refactorings 2020-11-25 19:41:52 +01:00
Martin Gerhardy e8fcff6e6d TWINE: implement ui control via mouse
Also optimized the on-screen keyboard rendering a lot, renamed
parameters and started to use Common::Rect
2020-11-25 17:00:44 +01:00
Martin Gerhardy 79daf804a4 TWINE: moved methods into ActorMoveStruct 2020-11-22 23:19:35 +01:00
Martin Gerhardy 699c8225c6 TWINE: replaced magic numbers with constants
and started to mark the angles - to be able to refacto them easier later on
2020-11-20 18:34:50 +01:00
Martin Gerhardy b30a195e97 TWINE: introduced ClampAngle 2020-11-20 18:26:35 +01:00
Martin Gerhardy bd3cf29205 TWINE: reduced code duplication 2020-11-16 21:23:04 +01:00
Martin Gerhardy b27953f9f7 TWINE: renamed to lowercase 2020-11-16 21:23:04 +01:00
Martin Gerhardy ff128d1787 TWINE: replaced magic numbers 2020-11-08 20:45:46 +01:00
Martin Gerhardy b25d81ca1d TWINE: replaced magic numbers and use local vars 2020-11-08 13:44:49 +01:00
Martin Gerhardy 78a909c16c TWINE: converted members to local var 2020-11-08 13:44:49 +01:00
Martin Gerhardy 03654bdd3e TWINE: there is no other return value as 1 2020-11-08 13:44:49 +01:00
Martin Gerhardy 0842ffa071 TWINE: moved members to local vars and reduced visibility 2020-11-08 13:44:49 +01:00
Martin Gerhardy 010941083e TWINE: moved members to local var 2020-11-08 13:44:49 +01:00
Martin Gerhardy 03e0dcdd9c TWINE: removed yet another member from renderer class and made it a local var 2020-11-08 13:02:37 +01:00
Martin Gerhardy 60935e83ed TWINE: const and reduced scope in renderer code 2020-11-08 12:49:49 +01:00
Martin Gerhardy f4f67faee0 TWINE: fixed a few endian issues in the animation code
the body and keyframe data is directly loaded from the hqrs
2020-11-08 12:33:02 +01:00
Martin Gerhardy 38d5886b41 TWINE: const for src buffer 2020-11-06 20:40:00 +01:00