Commit Graph

485 Commits

Author SHA1 Message Date
Edu García
fc55671f61 [gl] use single structure for vertex data 2024-05-09 13:16:01 +01:00
Edu García
860c9e8826 [gl] cleanup 2024-05-09 12:19:00 +01:00
Edu García
f7042717e1 [gl] remove dead code 2024-05-08 18:10:07 +01:00
Edu García
2e59199b24 [gl] extracted some common GPU rendering code 2024-05-08 18:08:19 +01:00
Edu García
d93ca0d5fd [gl] extracted some common GPU rendering code 2024-05-08 18:06:06 +01:00
Edu García
30eef961c5 [gl] Overlay_[type|map] -> gpu_Overlay_[type|map] 2024-05-08 18:04:52 +01:00
Edu García
558b9bb120 [gl] extracted some common GPU rendering code 2024-05-08 18:03:44 +01:00
Edu García
f1941de990 [gl] extracted some common GPU rendering code 2024-05-08 18:01:22 +01:00
Edu García
9b936995ce [gl] Alpha_multiplier -> gpu_Alpha_multiplier 2024-05-08 17:58:59 +01:00
Edu García
7ce523cd5a [gl] extracted some common GPU rendering code 2024-05-08 17:57:06 +01:00
Edu García
ed79ed1672 [gl] extracted some common GPU rendering code 2024-05-08 17:56:00 +01:00
Edu García
061d9ec37b [gl] OpenGL_[state|preferred_state] -> gpu_[state|preferred_state] 2024-05-08 17:49:20 +01:00
Edu García
7c362288ad [gl] extracted some common GPU rendering code (empty impls) 2024-05-08 17:47:21 +01:00
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