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
Edu García
a1900bc85b
remove unused code (more Software renderer code)
2024-05-08 16:23:12 +01: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
Ryan C. Gordon
6d837e2083
sdl2: default to fullscreen mode.
2024-05-06 01:43:06 -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
f739edff3d
Some more SDL1.2 -> SDL2 work. Mouse input doesn't suck now!
2024-05-02 08:29:23 -04:00
Ryan C. Gordon
001a533399
Initial migration from SDL 1.2 to SDL2.
2024-05-02 08:29:21 -04:00
Ryan C. Gordon
6a18afab7c
Remove references to X11 and glX.
...
This is all in unused/unnecessary/leftover code, but the code wouldn't
build without Xlib headers on the system, which was forcing the Mac builds
to install xquartz.
This also removes renderer/SoftwareOpenGL*, which was _not_ a
software-rendered OpenGL, but just an older version of the same code that's
in HardwareOpenGL.cpp--old enough to still talk to glX directly, which is
what caught my attention.
2024-04-30 12:08:03 -04:00
Ryan C. Gordon
6c8977caf0
Heavy patching for compiler warnings.
...
The vast majority of this is fixing up `char *` that should be `const char *`
but a handful of other fixes, like potential buffer overflows that GCC
noticed, etc, were applied as well.
This removes `-Wno-write-strings` from CMakeLists.txt, as it is no longer
necessary, as there is no longer a flood of compiler warning spam when
building.
This does not fix all compiler warnings; there are still a handful, and they
are legitimate, but they can be dealt with in a future commit.
2024-04-29 00:18:56 -04:00
Jacob Coby
988653e01e
Grab mouse after SDL_SetVideoMode
...
Fixes mouse cursor not being grabbed on macOS. Also sets the
`ddio_mouseGrabbed` flag correctly so it can be detected later on.
Fixes #201
2024-04-28 10:14:26 -04:00
Kevin Bentley
1f45163248
Updated source to reflect the license that this code is released under.
2024-04-20 09:57:49 -06:00
C.W. Betts
57078ae4b5
Change most sprintf to snprintf.
...
This also includes vsprintf to vsnprintf.
2024-04-19 12:31:28 -06:00
Thomas Otto
b909a4cf43
Convert min/max macros to std::min/max
...
Added explicit <float> or <int> template argument where needed.
Add -DNOMINMAX define for Windows.
2024-04-17 21:43:38 +02:00
Azamat H. Hackimov
38128ea134
Additional clang-format
2024-04-17 00:25:04 +03:00
Kevin Bentley
7399b5a2f2
Fix CRLF line endings.
2024-04-16 14:21:35 -06:00
Dan Raviv
e57251a4f4
Restrict i386-only inline assembly
2024-04-16 13:02:45 -07:00
Kevin Bentley
c6640cc631
clang-format on everything.
2024-04-16 12:56:40 -06:00
Kevin Bentley
df209742fc
Initial import
2024-04-15 21:43:29 -06:00