Commit Graph
91 Commits
Author SHA1 Message Date
Anders Jenbo 660405505f Remove C compat
It's unmaintained and clear that we won't be going back since some
functions can only be solved with C++
2020-04-06 05:43:20 +02:00
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)
2020-03-01 22:18:00 +01:00
Anders Jenbo e7e51abd13 Document remaning functions in render related files 2020-02-16 04:01:52 +01:00
Anders Jenbo a29d64b923 Document engine.cpp functions 2020-02-16 01:42:41 +01:00
Anders Jenbo f1616060e5 Document CL2 render functions 2020-02-15 17:06:31 +01:00
Anders JenboandGitHub 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).
2020-02-14 13:12:54 +01:00
qndelandAnders Jenbo a6a89bca3a apply TRUE/FALSE 2020-01-31 19:22:51 +01:00
Anders Jenbo f761c73723 Correct CelBlitWidth signature 2020-01-01 17:34:29 +01:00
Anders Jenbo 0c90ad0527 Set bool values TRUE/FALSE 2019-12-22 23:57:10 +01:00
galaxyhaxzandAnders Jenbo 67fedd9e99 Fix unknown struct field and drawpanflag 2019-10-31 22:57:15 +01:00
Robin EklindandAnders Jenbo e155a9423e rename random to random_ to avoid collision with random in stdlib.h
Fixes #1813.
2019-10-21 09:56:36 +02:00
Anders Jenbo 6597688eac Rename cell functions 2019-10-13 13:31:56 +02:00
Anders Jenbo 6dd0893bce Implement CelGetFrameSize 2019-09-28 00:14:01 +02:00
Anders Jenbo ce6fc51b50 Implement CelGetFrame (CEL decoder helper)
This implements the first of the inlined CEL decoder helper functions
that are still visable in the Mac port code.

Functions are still bin exact
2019-09-27 21:02:44 +02:00
qndelandAnders Jenbo 32e519415a GetDirection cleanup 2019-09-21 17:01:37 +02:00
qndelandAnders Jenbo a593f3a1d2 6 functions cleanup 2019-09-18 00:54:43 +02:00
qndelandAnders Jenbo a0575d335f random bin exact in vanilla/hellfire 2019-09-01 03:40:32 +02:00
Robin EklindandAnders Jenbo 2508690d9c engine: rename rand_increment and rand_multiplier to RndInc and RndMult
Rationale described in https://github.com/sanctuary/notes/commit/a479cc56b8fcb7db1a88ac487a10147c99033963
as included below:

Note, neither rand_increment nor rand_multiplier are
present in the PSX debug info. To keep the names for
these variables consistent with the naming convention
used for sglGameSeed, SeedCount, SetRndSeed and
GetRndSeed (which are part of the PSX debug info), we
rename them to RndInc and RndMult, respectively.
2019-08-18 07:44:39 +02:00
Anders Jenbo 3bc8ba66b0 Use defines for more screen geometry values 2019-07-20 17:10:49 +02:00
Anders Jenbo 55b5ce883d Clean up unformatted files 2019-07-08 04:28:31 +02:00
Anders Jenbo 7883043adc Clean up files with dirty headers 2019-07-08 04:28:31 +02:00
Anders Jenbo 32a51d17ca Align function signatures with PSX symbols
Using
https://github.com/diasurgical/scalpel/tree/master/psx/_dump_/3/_dump_c_src_/diabpsx/source
as a reference
2019-07-08 04:12:12 +02:00
Anders Jenbo f31cac0ee0 Clean up Cl2DecodeFrm3, Cl2DecodeFrm5, Cl2DecodeLightTbl & Cl2DecodeFrm6 2019-06-13 21:55:18 +01:00
Sergey SemushinandAnders Jenbo 2b816ff9a8 Make CelDrawHdrLightRed bin exact. 2019-06-13 11:57:03 +01:00
Anders Jenbo 0397dbe9e3 Allign similar code in engine.cpp 2019-06-11 11:08:50 +02:00
Anders Jenbo 85651c015a Consistent var naming in engine.cpp 2019-06-10 23:23:30 +02:00
Manuel K 97c1edd3a0 Use BUFFER_WIDTH 2019-06-05 20:13:34 +02:00
Manuel KandAnders Jenbo df1d049ae3 Use SCREEN_Y 2019-06-02 18:08:09 +01:00
Manuel KandAnders Jenbo 896933f55e Replace magic number 352 with VIEWPORT_HEIGHT (#1232) 2019-06-02 17:51:33 +01:00
Sergey SemushinandAnders Jenbo a87f1450e7 Add algorithm description comment for DrawLine. 2019-05-06 02:04:07 +01:00
Sergey SemushinandAnders Jenbo b971d8a2cb Make DrawLine bin exact by copying from its original source. 2019-05-05 21:12:07 +01:00
galaxyhaxzandAnders Jenbo 5e10dcb912 diablo_reload_proc & Xiaolin Wu ref 2019-05-04 17:29:21 +01:00
galaxyhaxzandGitHub 75a150d142 DrawLine (#1084) 2019-05-01 05:32:05 -05:00
galaxyhaxz 5d4918eea0 LoadWithMem 2019-04-30 22:47:53 -05:00
galaxyhaxzandGitHub 3a636fdcc6 Add missing functions for MI_Dummy (#1004) 2019-04-22 20:21:52 -05:00
galaxyhaxz 777c517b8e Change ASM macro 2019-04-22 02:23:12 -05:00
galaxyhaxzandAnders Jenbo 540892ff9d Preliminary support for fixed header files 2019-04-21 17:20:38 +02:00
galaxyhaxzandAnders Jenbo 740e91e881 rename screen_y_times_768 2019-04-19 04:05:55 +02:00
Robin EklindandGitHub aefddd13d1 Merge pull request #866 from AJenbo/CelDecodeHdrLightTrans
Clean up CelDrawHdrLightRed
2019-04-16 01:42:51 +09:00
galaxyhaxzandAnders Jenbo cef65ea0b6 Implement Critical section constructor 2019-04-15 01:16:43 +02:00
Anders Jenbo a592838d42 Clean up CelDecodeHdrLightTrans 2019-04-09 13:51:19 +02:00
galaxyhaxzandAnders Jenbo 4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
galaxyhaxzandAnders Jenbo 63b0a9fb04 Cel2DrawHdrLightRed 2019-04-08 18:56:23 +02:00
Anders Jenbo 8387d0fb97 Align code style in engine.cpp 2019-04-08 03:42:50 +02:00
Anders Jenbo 53cd38a8e8 Clean up Cel2DecodeHdrLight 2019-04-08 03:42:34 +02:00
Anders Jenbo eb90aa182a Clean up CelDecodeHdrLightTrans 2019-04-08 00:56:33 +02:00
Anders Jenbo 46f83455be Clean up variable naming in engine.cpp 2019-04-08 00:32:33 +02:00
Anders Jenbo 1af8fc330f Clean up Cel2DecodeLightTrans 2019-04-08 00:10:07 +02:00
Anders Jenbo 4d6d0d8592 Clean up CelDecodeHdrLightOnly 2019-04-08 00:00:09 +02:00
Anders Jenbo e7d5aac5dc Clean up engine and scrollrt attribute naming 2019-04-07 21:17:59 +02:00