Anders Jenbo
dc8be6c0ab
C++03 compatibility ( #736 )
...
* Use C++03 compatible constructors
* Remove conflicting definitions
6 years ago
Anders Jenbo
b7c126d976
Apply defines to render
6 years ago
Anders Jenbo
af4ef7b19b
Fix rendering the ground part of foliage
6 years ago
Anders Jenbo
3c276a3cd3
Add documentation
...
- Add file documentation to about 1/4 of the files in Source
- Copy over a lot of the documentation from the sanctuary/notes repo
- Standardise all the existing documentation
- Create a configuration for Doxygen
- Add more documentation (engine.cpp is now fully documented)
6 years ago
Anders Jenbo
ffb6de3f5a
Don't draw in to the panels
6 years ago
Anders Jenbo
67d7655544
Fix world_draw_black_tile not taking buffer borders in to account
...
Thanks to @imperialsecond for providing a test case for
world_draw_black_tile
6 years ago
Anders Jenbo
e641eda71d
Document a couple of render functions
6 years ago
Anders Jenbo
e7e51abd13
Document remaning functions in render related files
6 years ago
Anders Jenbo
20621a0642
add all.h and use in place of diablo.h ( #2005 )
...
Now diablo.h is treated in the same way as all other header files of
Source, as it only contains the declarations of global variables and
functions of diablo.cpp.
Besides consistency, this also enables mods to include diablo.h just
like any other header file without having to include every header file
(and without having to include C++ specific aspects of the now all.h).
6 years ago
Marek Majkowski
15b021f8b7
Misc: "typedef enum" is not correct. Just "enum" is fine.
6 years ago
Gleb Mazovetskiy
ef20d1a038
Fix more UBSAN errors
6 years ago
Mathieu Maret
a12a7998d1
simplify world_draw_black_tile
6 years ago
Mathieu Maret
b2ed866c7a
Code simplification using memset/memcpy
6 years ago
Anders Jenbo
2348c3a8fd
Documentations, enums and clean ups
6 years ago
Anders Jenbo
7d1b0f24f7
Eliminate overdraw in cell functions
7 years ago
Anders Jenbo
da679a66a6
Convert inc file to a function
7 years ago
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.
7 years ago
Anders Jenbo
f8c16a1dcb
Only use safe blitting and set gpBufEnd to the correct relative values
...
This again allows us to only selectivly render the UI panel
This also eliminates the need for the BORDER_BOTTOM 10k memory saved!
7 years ago
Anders Jenbo
d0f1100983
Drop speedcel optimizations
...
Even on VC6 this appears to not improve performance in any noticable way
7 years ago
Gleb Mazovetskiy
fb37bbf675
Disable some signed shift UBSAN warnings
...
On Clang we can do this globally via a sanitizer blacklist, but that's not supported on GCC (yet):
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61978
We disable these warnings because all compilers implement them in the
same way according to the N2218 proposal to standardize the behaviour:
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2218.htm
7 years ago
Gleb Mazovetskiy
1ec5fa7896
Fix UB: load/store of misaligned render.cpp:130
...
Source/render.cpp:130:47: runtime error: load of misaligned address 0x7fea0df260da for type 'DWORD', which requires 4 byte alignment
Source/render.cpp:130:26: runtime error: store to misaligned address 0x7fea5796ff62 for type 'DWORD', which requires 4 byte alignment
7 years ago
arczi84
1ab2fb2666
Endian madness
7 years ago
Anders Jenbo
4fc52a0e23
Format render.cpp
7 years ago
Anders Jenbo
ec90987be0
Switch to new render from Galaxy
7 years ago
Anders Jenbo
b023104434
Remove u from values
7 years ago
Anders Jenbo
6ba57a2d10
Remove the last bit of garbage
7 years ago
Anders Jenbo
5ab9f4609a
Clean up signedness
7 years ago
Joan Karadimov
f695061d05
Replace resolution-related hard-coded numbers with constants
7 years ago
Anders Jenbo
11b6b1f860
Remove more garbage
7 years ago
galaxyhaxz
777c517b8e
Change ASM macro
7 years ago
galaxyhaxz
540892ff9d
Preliminary support for fixed header files
7 years ago
galaxyhaxz
4e01e03711
Cleanup default calling conventions
7 years ago
Anders Jenbo
d2174e3454
Apply code style
7 years ago
galaxyhaxz
d879a325e1
Fix dTransVal and pLightTbl ( #825 )
7 years ago
galaxyhaxz
b59754bd64
Render.cpp bin exact ( #744 )
7 years ago
galaxyhaxz
a29c75a3a2
Fix a few func/var names ( #731 )
7 years ago
Xadhoom
5283a9ffd1
Put everything into namespace dvl
7 years ago
Anders Jenbo
1e4e826a36
Remove delta to devilution
7 years ago
Robin Eklind
66dacd0967
render: clean up inlined asm functions ( #553 )
...
* render: clean up inlined asm functions
Now, these functions no longer use references. Instead they
use pointer to pointer.
7 years ago
galaxyhaxz
1324082090
The big cheap fix ( #446 )
7 years ago
Anders Jenbo
b1f6d3698f
Update style to use tabs
7 years ago
galaxyhaxz
84b041cf7d
Fix angular trans tiles
7 years ago
Anders Jenbo
6723acc98f
Format clean render bits
8 years ago
galaxyhaxz
0f184f2b71
Move assembly to _asm.cpp ( #388 )
8 years ago
galaxyhaxz
2f46409b64
Add inlining to render.cpp (btm) ( #383 )
8 years ago
nomdenom
d14bf20467
Source: NO_GLOBALS support (for Miniwin)
8 years ago
aperturesecurity
42ce77ce05
Rebirth and Nuke
8 years ago
galaxyhaxz
0d0f1bc5dc
T2: add inlining to render.cpp
8 years ago
galaxyhaxz
c9a6c21c5f
Rename variables in render.cpp
8 years ago
galaxyhaxz
4bdd50440d
Fix lighting of some floor tiles
...
Devilution is now basically bug free!
8 years ago