Commit graph

24 commits

Author SHA1 Message Date
Gleb Mazovetskiy
59dd42692f 🚚 Move render.cpp to engine/render/dun_render.cpp 2021-05-06 21:30:06 +02:00
Gleb Mazovetskiy
18967ce5ff 🎉 render.cpp: Do not render out-of-bounds
This is part of the work to allow us to eliminate buffer padding.

As this is a hotspot, we have 4 separate functions for each non-square
primitive, resulting in quite a bit of code:

1. Unclipped ("Full")
2. Vertical-only clip
3. Vertical + Left clip
4. Vertical + Right clip

FPS at 640x480: 1420 -> 1530
2021-05-04 19:07:11 +02:00
thebigMuh
ad8f342db0 Adding constness 2021-04-26 23:30:02 +02:00
Anders Jenbo
997c1dba55 🚚 Split up all.h in to proper header relations 2021-04-16 01:04:54 +02:00
Anders Jenbo
f450d6a125 🚚 Move defines to there proper files 2021-04-16 01:04:54 +02:00
Gleb Mazovetskiy
77632cd83e world_draw_black_tile: Stop relying on buffer padding 2021-04-12 18:42:35 +01:00
Anders Jenbo
e7ae8ddd04 🚚 Move all enums to there respective headers 2021-04-10 16:30:00 +02:00
Anders Jenbo
433edc63ea ♻️ Consistently use pragma once to guard the headers 2021-04-06 15:21:25 +02:00
Anders Jenbo
bfb3c11c2b 🎨 Change namespace to devilution 2021-04-06 15:21:25 +02:00
Anders Jenbo
630e507f63 🚚 Apply namespace 2021-04-06 15:21:25 +02:00
Gleb Mazovetskiy
f607807c95 Migrate the rest of drawing away from gpBufEnd 2021-03-13 02:26:11 +01:00
Gleb Mazovetskiy
83ce7c27af Enginify trans_rect
Moves `trans_rect` to `engine` as `DrawHalfTransparentRectTo` and makes
it operate on `CelOutputBuf`.
2021-03-03 12:07:07 +01:00
Anders Jenbo
893efd51ea Merge branch 'master' of github.com:diasurgical/devilution 2020-09-27 03:34:42 +02:00
Anders Jenbo
1ba96a6777 Add doxygen description to remaining engine files 2020-07-06 05:43:25 +02:00
Joel Falcou
c4223d4c29 Per file basis use of extern C 2020-04-22 13:15:29 +02:00
Joel Falcou
64d26a7934 Sanitize use of namespace
Wrap individual headers in dvl namespace to prevent
including standard header in another namespace.
2020-04-22 13:15:29 +02:00
Anders Jenbo
e4df9319b0
Fix render order (#639) 2020-03-10 10:33:59 +01:00
Anders Jenbo
da679a66a6 Convert inc file to a function 2019-10-20 15:59:47 +02:00
Anders Jenbo
16820106bc Merge town_draw() with scrollrt_draw()
This require calling DRLG_InitTrans() during CreateTown() to clear out
the transparancy flags after having been to the duntion. Else the
mausoleum will be transparent.
2019-10-20 15:59:47 +02:00
Anders Jenbo
ec90987be0 Switch to new render from Galaxy 2019-08-26 13:32:59 +02:00
Anders Jenbo
5ab9f4609a Clean up signedness 2019-07-21 00:57:53 +02:00
galaxyhaxz
4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
galaxyhaxz
b59754bd64
Render.cpp bin exact (#744) 2019-03-26 08:20:46 -05:00
galaxyhaxz
5ff8756116
Fix junk (#174) 2018-08-21 23:58:17 -05:00
Renamed from Source/world.h (Browse further)