Commit Graph

472 Commits

Author SHA1 Message Date
Edu García
9f1b55162d [gl] extracted some common GPU rendering code 2024-05-08 17:40:11 +01:00
Edu García
6705cd9543 [gl] extracted some common GPU rendering code 2024-05-08 17:36:43 +01:00
Edu García
a595fabd03 [gl] OpenGL_Alpha_factor -> gpu_Alpha_factor 2024-05-08 17:31:16 +01:00
Edu García
8aa7a88b9f [gl] remove unused "profiling" code 2024-05-08 17:28:57 +01:00
Edu García
4bd98c16e4 minor refactor of OpenGL renderer 2024-05-08 17:18:21 +01:00
Louis Gombert
97d656f514
Merge pull request #314 from Arcnor/deadcode-removal4
remove unused code (more Software renderer code)
2024-05-08 18:15:10 +02:00
Edu García
a1900bc85b remove unused code (more Software renderer code) 2024-05-08 16:23:12 +01:00
Louis Gombert
9cb68c2e74
Merge pull request #305 from Arcnor/deadcode-removal3
remove unused code (Software renderer, unused macos d3m netgames)
2024-05-08 14:59:52 +02:00
Louis Gombert
fe6bf7bf32
Merge pull request #303 from Arcnor/deadcode-removal2
remove unused code (mainly windows.h)
2024-05-08 14:49:53 +02:00
C.W. Betts
8d3b2f8877
C++ Algorithm pokes (#304)
* Use std::max and std::min, with an initializer_list where possilbe.

* Use std::clamp where appropriate.

* Missed a couple of them.

* Remove clamp specializations at @Lgt2x suggestion.
2024-05-08 11:04:52 +02:00
Edu García
3440667e93 remove unused code (mainly windows.h) 2024-05-07 23:45:33 +01:00
Edu García
aaecc4a5a3 remove unused code (Software renderer, unused macos d3m netgames) 2024-05-07 23:22:05 +01:00
C.W. Betts
c6da74b069
Mark functions and variables as static (#185)
* Begin by marking functions and variables as static when needed.

* More work.

* More work.

* More pokes.

* More work.

* More work.

* Initial work on the netgames.

* Revert changes to the license header on source files.

* clutter.cpp poke.

* One final poke.

* Move some declarations to headers:

Move paged_in_count and paged_in_num to gamesequence.h
Move DoneLightInstance and StartLightInstance to polymodel.h

* Look over the AI script/plug-ins.

* Going over the changes one last time.

* Fix rebase errors.

* More migration from bare statics to static inlines.
2024-05-07 23:35:28 +02:00
Jeod
aaa0d21b87
Merge pull request #296 from JeodC/d3cfix
TCP~IP.d3c building on windows
2024-05-06 20:03:05 -04:00
Louis Gombert
947be23b21
Merge pull request #299 from Arcnor/deadcode-removal
remove unused code
2024-05-06 22:18:33 +00:00
Louis Gombert
3372c9b584
Merge pull request #294 from phlash/case-insensitive-files
Support case-insensitive loading of content files
2024-05-06 22:17:03 +00:00
JeodC
d8be484eb6 TCP~IP.d3c building on windows
Adds winsock to cmakelists target libraries. Removes an include for unused header file. Converts an unsigned int to u_long for windows.
2024-05-06 18:13:49 -04:00
Louis Gombert
b84d2b4915
Merge pull request #298 from winterheart/hog-cleanup
Cleanup hogfile code
2024-05-06 22:01:35 +00:00
Edu Garcia
553f851714 remove unused code 2024-05-06 22:06:26 +01:00
Jeod
b7202fe924
Merge pull request #291 from JeodC/extramousebtns
Import extra mouse buttons from Piccu
2024-05-06 16:04:41 -04:00
Azamat H. Hackimov
096cd84991 Cleanup hogfile code
Remove unused code related to old HogUtils executable, now superseded by HogMaker.
Stricter checks for hog header and hog file entry (check fread() sizes).
2024-05-06 22:50:07 +03:00
Edu Garcia
f20d6ecd39
Merge pull request #292 from Arcnor/rnr-removal
Rock'n Ride removal
2024-05-06 19:36:22 +01:00
Phil Ashby
24e9b50779 Do not attempt case-sensitive processing on Windows 2024-05-06 19:08:31 +01:00
Edu Garcia
a26ced7d4c remove unused serial code 2024-05-06 19:01:48 +01:00
Phil Ashby
583aac6471 Movies now load from case-insensitive file names 2024-05-06 18:49:39 +01:00
Phil Ashby
b5ba5f2a91 Support case-insensitive loading of HOG files 2024-05-06 17:52:45 +01:00
Edu Garcia
53a47eaf2c remove Rock'n Ride code 2024-05-06 15:58:46 +01:00
JeodC
481cbc3afe Import extra mouse buttons from Piccu
Import the extra mouse buttons for Windows from Piccu Engine commit 2924ad2. Will help until SDL2 is brought to Windows platform.
2024-05-06 08:35:50 -04:00
Louis Gombert
0e69bf465f
Merge pull request #241 from icculus/ryan-sdl2-port
Initial SDL2 port
2024-05-06 08:57:20 +00:00
Ryan C. Gordon
6d837e2083
sdl2: default to fullscreen mode. 2024-05-06 01:43:06 -04:00
Ryan C. Gordon
80335136e3
sdl2: Add support for mousewheel and more mouse buttons. 2024-05-05 11:09:07 -04:00
Ryan C. Gordon
bd3a596975
sdl2: Updated README for SDL2 changes.
Update SDL 1.2 references, remove SDL_image references.
2024-05-05 10:27:48 -04:00
Ryan C. Gordon
6f07fd5a94
sdl2: Remove some dead 3DFx Voodoo Linux support code from the year 2000. 2024-05-05 10:25:05 -04:00
Ryan C. Gordon
b362bc9c54
sdl2: Remove a commented out line. 2024-05-05 10:22:16 -04:00
Ryan C. Gordon
851f47537b
sdl2: Ignore key-repeats events.
Fixes keyboard input during gameplay.
2024-05-05 10:14:53 -04:00
Ryan C. Gordon
65b1a7dc3b
sdl2: Fix broken audio in MVE playback.
This doesn't fix the audio gaps, just the static introduced in the SDL2 port.

SDL2 does not initialize the audio callback's buffer, unlike SDL 1.2, under
the assumption the callback is going to fully write it anyhow. But since
the movie player wants to mix against the current contents of the buffer,
we need to explicitly initialize it to silence first.
2024-05-05 10:14:50 -04:00
Jeod
22bc56aa5f
Merge pull request #287 from Jayman2000/include-gpl-in-artifacts
Add a copy of the GPL to CI artifacts
2024-05-04 19:20:11 -04:00
Jason Yundt
db742e6939 Add a copy of the GPL to CI artifacts
The GPL requires that you include a copy of the GPL with every copy of
programs that are released under the GPL [1]. Before this change, CI
artifacts didn’t include a copy of the GPL.

Fixes #276.

[1]: <https://www.gnu.org/licenses/gpl-faq.en.html#WhyMustIInclude>
2024-05-04 15:16:14 -04:00
Jeod
bea6bec96a
Merge pull request #144 from MaddTheSane/machBundle 2024-05-04 14:06:21 -04:00
C.W. Betts
c534c1be1d Also make net games and internet plug-ins also be MODULES. 2024-05-04 12:05:15 -06:00
C.W. Betts
3adf6906ab Build the plug-ins as CMake modules. 2024-05-04 12:05:11 -06:00
Jeod
84304cf164
Merge pull request #275 from winterheart/d3-osx-hog-generate 2024-05-04 12:03:27 -04:00
Jeod
8b453fd4f2
Merge pull request #277 from MaddTheSane/onlyOneHog 2024-05-04 12:03:03 -04:00
Jeod
52e66c3275
Merge pull request #233 from jcoby/64bit-fixes 2024-05-04 12:01:06 -04:00
Azamat H. Hackimov
ef886a2cf2 Generate d3-osx.hog for macOS
Reorganizing hog generation for Linux and macOS.
2024-05-04 16:34:36 +03:00
Jeod
e2b6653bbd
Merge pull request #285 from Talon1024/patch-1
Add links to Steam and GOG store pages
2024-05-04 07:48:04 -04:00
Kevin Caccamo
f289fce0e8
Add links to Steam and GOG store pages 2024-05-04 03:00:08 -04:00
Louis Gombert
d36af47214 Remove unused header dyna_svga.h 2024-05-03 19:43:41 -04:00
Louis Gombert
321145c28f Remove usage of DECLARE_POINTERS in dyna_curses.h 2024-05-03 19:43:41 -04:00
Louis Gombert
053aef798e Remove unused header dyna_pthread.h
This header is a duplicate of dyna_pthread.h in lnxmvelib/, and is never included anywhere
2024-05-03 19:43:41 -04:00