Anders Jenbo
946ff5b0fa
♻️ Performe static casts when load save game data
5 years ago
Anders Jenbo
61d15e23db
🎨 Apply direction enum to monsters and relations
...
Missiles _mimfnum is being used for a lot more then just directions and
can also be a 16 degree direction so can't apply enum verbs and
restricitons to it in most cases. This in turns also affects SetMissDir
and some other functions that have to stay int.
5 years ago
Gleb Mazovetskiy
95946e3a7c
🧹 Cleanup unused variables ( #1584 )
...
Fixes `unused-variable` and `unused-but-set-variable` compiler warnings.
5 years ago
Gleb Mazovetskiy
b2601a04e0
Zoom: Fix off-by-1 and handle odd dimensions
5 years ago
qndel
d8444ed695
Clean DrawInvBelt + outline colors
...
* fix right hand items
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
obligaron
9fbe139f64
cache ProgressToNextGameTick and update it only once before rendering
5 years ago
obligaron
c7b9ffec1f
Decouple Animations from Gamelogi (Smooth Animations for skipped Frames).
...
NewPlrAnim: Use default arguments instead of overloads
StartPlrHit: Fix skippedAnimationFrames - Frames starts with 1
Add missing comment for StartPlrHit
Fix GotHit-Animation: Skipping Frames corrected and adjusted _pAnimGameTicksSinceSequenceStarted for animations that don't start with a additional tick.
Thanks @StephenCWills for the gothit skipping frame calculation logic :-)
Update StartWalk: calculated numSkippedFrames in own line.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
StartPlrHit: always initialize skippedAnimationFrames
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
Update nthread_GetProgressToNextGameTick comment
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
fix spelling "lenght" instead of "length"
Update NewPlrAnim comment
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
GetFrameToUseForPlayerRendering: avoid one "else"
5 years ago
Gleb Mazovetskiy
db3eaacfcf
Stop relying on buffer padding in cursor rendering
...
Follow-up to #1173
5 years ago
Anders Jenbo
9d037bafff
🚨 Fix remaning clang warnings
5 years ago
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
5 years ago
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
5 years ago
Anders Jenbo
4ee84aea1a
♻️ Change BOOLEAN to bool
...
fixup BOOLEAN
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Juliano Leal Goncalves
9021f8daa5
♻️ Pluralize global 'item' array variable
5 years ago
FluffyQuack
c0f57f3020
🐮 Draw outline for color in index 0 for inventory icons. ( #1318 )
5 years ago
Anders Jenbo
ca2c2ba5e7
🚨 Handle a bunch of warnings from CLang
5 years ago
Gleb Mazovetskiy
92fbd21b11
Fix SDL_Rect warnings on SDL1
5 years ago
Gleb Mazovetskiy
70d1d633bd
Get rid of SCREEN_X / SCREEN_Y
...
GlobalOutputBuffer() now returns a clipped subregion
5 years ago
Gleb Mazovetskiy
4d6de74eb8
Don't rely on BORDER_LEFT/TOP in cursor rendering
...
The code there previously implicitly relied on BORDER_LEFT/TOP being
large enough.
5 years ago
Gleb Mazovetskiy
cd59a1c323
Completely replace gpBuffer with CelOutputBuffer
...
`CelOutputBuffer` now contains an `SDL_Surface` and an `SDL_Rect`.
We now have access to SDL surface manipulation functions.
`gpBuffer` and `gpBufEnd` are completely gone 🧹
This results in some FPS loss (250 -> 195) recovered in a subsequent
commit.
5 years ago
Gleb Mazovetskiy
4b45b642a7
Migrate scrollrt_draw_cursor_back_buffer away from gpBuffer
5 years ago
Gleb Mazovetskiy
afa3a6bf27
Migrate capture.cpp away from gpBuffer
5 years ago
Gleb Mazovetskiy
599d2e5e38
Migrate QOL away from gpBuffer
5 years ago
Gleb Mazovetskiy
bafbad6b5b
Migrate RedBack away from gpBuffer
5 years ago
Gleb Mazovetskiy
e7c9ba40f5
Migrate DrawLife/ManaFlask away from gpBuffer
5 years ago
Gleb Mazovetskiy
f607807c95
Migrate the rest of drawing away from gpBufEnd
5 years ago
Gleb Mazovetskiy
3c4ccfc2e4
CelOutputBuffer: Replace subregion with subregionY
...
We can't do anything with X yet
5 years ago
Anders Jenbo
58a1c1db95
♻️ Clean up function in scrollrt.cpp with swaps
5 years ago
Anders Jenbo
f97adef2dd
🐛 Fix render assertions on Big Endian systems
5 years ago
Gleb Mazovetskiy
ba6a78ebc8
Migrate `Cl2DrawOutline` to accept a buffer
5 years ago
Gleb Mazovetskiy
819b5b05df
Migrate `Cl2DrawLightTbl` to accept a buffer
5 years ago
Gleb Mazovetskiy
07f4dbbd2e
Migrate `Cl2Light` to accept a buffer
5 years ago
Gleb Mazovetskiy
bb3ba369df
Migrate `Cl2Draw` to accept a buffer
5 years ago
Gleb Mazovetskiy
eadc5a20a3
Migrate `CelDrawLightRedSafe` to `CelDrawLightRedSafeTo`
5 years ago
Gleb Mazovetskiy
a70de3cecd
Migrate `CelClippedDrawSafe` to `CelClippedDrawSafeTo`
5 years ago
Gleb Mazovetskiy
9ca1fd8996
Migrate `CelBlitOutline` to `CelBlitOutlineTo`
5 years ago
Gleb Mazovetskiy
242341c0b3
Migrate `CelClippedDraw` to `CelClippedDrawTo`
5 years ago
Gleb Mazovetskiy
88bf59f355
Migrate `CelClippedBlitLightTrans` to `CelClippedBlitLightTransTo`
5 years ago
Gleb Mazovetskiy
14ae63d37d
Migrate `CelClippedDrawLight` to `CelClippedDrawLightTo`
5 years ago
Gleb Mazovetskiy
379b45e021
Migrate `CelDrawLight` to `CelDrawLightTo`
5 years ago
Gleb Mazovetskiy
b43325028f
Migrate `CelDraw` to `CelDrawTo`
5 years ago
Anders Jenbo
e280432b92
🚨 Fix all SDL1 warnings
5 years ago
qndel
82ab76b22b
✨ Experience bar
5 years ago
qndel
be895274dc
✨ Monster health bar
5 years ago
Anders Jenbo
6be9d37a57
🐛 Fix unitialized variables in the rendere
5 years ago
Gleb Mazovetskiy
d55a1c8a7d
Pass CelOutputBuffer to game text printing ( #1095 )
...
* Pass CelOutputBuffer to game text printing
* DrawHalfTransparentRectTo: minor cleanup
5 years ago
Gleb Mazovetskiy
83ce7c27af
Enginify `trans_rect`
...
Moves `trans_rect` to `engine` as `DrawHalfTransparentRectTo` and makes
it operate on `CelOutputBuf`.
5 years ago
Gleb Mazovetskiy
588458d500
Remove gpBufStart
...
Was only set once and used in one place since #964
5 years ago