numzero
6a5fceb8fd
Hide OpenGL3 behind SDL2 (it won’t build otherwise anyway)
2023-09-17 21:07:07 +02:00
Gregor Parzefall
0b9ee5884f
Fix Android build after #231
2023-09-17 20:34:43 +02:00
sfan5
679dfd3343
Fix CNullDriver::removeTexture() segfault
...
`Textures` is not an one-to-one mapping.
Minetest still crashes with this commit but that's because
it attempts to double-free a texture.
broken by 7298b46504c109b13bab26c32d4b94f6985074d5
2023-09-13 15:16:57 +02:00
sfan5
f9d7a632f5
CI: Add MinGW builds with SDL
2023-09-13 13:26:01 +02:00
numzero
dc43583a2c
CI: Merge 32- and 64-bit MinGW builds
2023-09-13 13:26:01 +02:00
Desour
03fd4ff533
Remove unused IVideoDriver::getTextureByIndex and IVideoDriver::renameTexture
...
* getTextureByIndex is pretty useless (apart from iterating over all texture,
which we don't do), as you can't get an id.
* renameTexture is broken anyway: The sort call does nothing because the array
is still flagged as sorted.
2023-09-13 13:24:08 +02:00
Desour
b7292226b4
Remove the unnecessary sort in CNullDriver::addTexture
2023-09-13 13:24:08 +02:00
sfan5
7298b46504
Use binary search in CNullDriver::removeTexture()
2023-09-13 12:33:50 +02:00
Caleb Butler
af20d9ff86
Remove deprecated function transformBox
2023-09-05 17:21:35 +02:00
Caleb Butler
00dd1f8ef3
Remove deprecated functionality of SMaterial
2023-09-05 17:21:35 +02:00
Caleb Butler
364cb37698
Remove deprecated methods from IVideoDriver
2023-09-05 17:21:35 +02:00
Caleb Butler
7ce9169d8d
Remove deprecated method getOperatingSystemVersion
2023-09-05 17:21:35 +02:00
Caleb Butler
ebdb2e410b
Remove deprecated member functions of IMeshCache
2023-09-05 17:21:35 +02:00
Caleb Butler
a28b8f9e91
Remove deprecated member functions
...
Removes deprecated member functions of IMaterialRendererServices.
2023-09-05 17:21:35 +02:00
Caleb Butler
6cd27d5dca
Remove deprecated IImage member functions
2023-09-05 17:21:35 +02:00
Caleb Butler
04ab99f218
Removes deprecated function getNumber
...
Removes deprecated function getNumber as well as makes all
line terminators the proper CR LN combo.
2023-09-05 17:21:35 +02:00
Caleb Butler
d753c8b782
Remove deprecated functions related to FileSystem
2023-09-05 17:21:35 +02:00
Caleb Butler
6a3ed6428f
Remove deprecated getBoneName method
2023-09-05 17:21:35 +02:00
Caleb Butler
3492fd0d2d
Remove primitive types not supported in OpenGL 3+
...
I removed old primitive types that do not work with modern OpenGL.
2023-09-05 17:21:35 +02:00
Kai Giebeler
c6b06533f3
Deduplicate KP_5 from KP_HOME
2023-09-01 15:54:55 +02:00
sfan5
e609f5f263
Remove leftovers from D3D
2023-09-01 12:45:56 +02:00
sfan5
ddecc0fae2
Inline a pointless function
2023-09-01 12:26:43 +02:00
sfan5
dd3a34d674
Remove unused (I)Timer methods
2023-09-01 12:22:27 +02:00
Desour
0735220f86
Suppress a -Wunused-but-set-variable warning
2023-08-29 17:33:25 +02:00
Desour
0740d055ac
Fix uninitialized memory error in operator- for ustring16 iterators
2023-08-29 17:33:25 +02:00
Gregor Parzefall
1d4672bd92
Remove the now unused SMaterialLayer::setFiltersMinetest method
2023-08-24 17:20:54 +02:00
Jessica Clarke
ef3bab610d
CIrrDeviceLinux: Fix type for NET_WM_PID XChangeProperty
...
This uses format=32 which in X11's API means a C type of long (with
restricted range when > 32 bits). pid_t is of unknown type, though on
Linux and FreeBSD it's a 32-bit type, so does not have the same size as
long on 64-bit architectures, and thus XChangeProperty reads outside its
bounds. Fix this by casting to and passing a long.
2023-08-15 20:42:12 +02:00
Loïc Blot
d98dc90b38
cleanup: only build some files on WIN32 and compile EGL only if needed
2023-08-01 20:53:25 +02:00
sfan5
c311d01c07
Bump revision
1.9.0mt12
2023-07-20 20:14:50 +02:00
Loic Blot
d7f75ae882
gitignore: add vscode cmake extension support
2023-07-20 16:29:09 +02:00
Loic Blot
e0d4d7d8b4
cleanup: get rid of the legacy #ifndef #define craziness
2023-07-20 16:29:09 +02:00
Gregor Parzefall
fb7a0e4298
2D rendering: Enable bilinear filter for downscaling textures
...
This looks much better and doesn't have any downsides (e.g. regarding pixel art).
2023-07-16 13:02:48 +02:00
Gregor Parzefall
a994c31ccf
Expose all OpenGL filtering modes, use OpenGL names for them
...
Because of a review comment by numberZero.
2023-07-16 13:02:48 +02:00
Gregor Parzefall
c40045a40a
Rename SMaterial::TextureLayer -> SMaterial::TextureLayers
...
It's not the "texture layer" of the material, but an array of texture layers.
2023-07-16 13:02:48 +02:00
Gregor Parzefall
c0ef1092c0
Rename E_MATERIAL_FLAG -> E_MATERIAL_PROP
...
The enum values don't reference material flags, but material properties.
2023-07-16 13:02:47 +02:00
Gregor Parzefall
5ececc7d29
Split up texture filtering properties of SMaterialLayer into MinFilter and MagFilter
...
You can now set the filter used when scaling textures down and the filter used when scaling textures up separately.
2023-07-16 13:02:26 +02:00
Gregor Parzefall
9e0189019e
Refactor the way you set material properties
...
Instead of using SMaterial::setFlag, you now set them directly on SMaterial or SMaterialLayer.
2023-07-16 13:02:25 +02:00
ndren
b249e4523d
Use precise y-direction scroll values in SDL
2023-07-03 22:46:08 +02:00
numzero
041377c24c
CI: Add MSVC/SDL builds
2023-07-03 21:03:37 +02:00
Gregor Parzefall
83699a835d
Remove content-less comments
2023-06-15 10:01:34 +02:00
Gregor Parzefall
98589d2fd2
Remove unused fixed function materials
2023-06-15 10:01:34 +02:00
Desour
8c856408f5
Remove use of std::iterator
...
(Deprecated in C++17.)
2023-06-14 09:45:16 +02:00
Desour
cbc7aeb302
Bump C++ std to 17
2023-06-14 09:45:16 +02:00
Gregor Parzefall
09af5ac00d
Actually fix Android build
2023-06-06 16:20:06 +02:00
sfan5
2c6efbdf06
Remove native_app_glue linkage
...
We don't provide android_main(), Minetest does. This also didn't even work correctly.
1.9.0mt11
2023-06-04 19:56:30 +02:00
JosiahWI
510976f130
Prefer GLVND at CMake>=3.11
...
CMake 3.10 introduced GLVND support. CMake 3.11 introduced CMP0072,
which prefers GLVND when NEW behavior is set. I set default policies to
3.11 for CMake versions >=3.11 and did not bother with requesting GLVND
for CMake 3.10.
2023-05-14 20:54:03 +02:00
numzero
b958fdc271
Fix casing for Android device name (MATCHES
is case sensitive)
2023-05-11 22:34:08 +02:00
numzero
1387370260
OpenGL3: Sort out texture color format support
2023-04-29 13:07:57 +02:00
Desour
49b6ccde72
SDL: Implement getDisplayDensity() and setWindowIcon()
2023-04-29 13:06:35 +02:00
Desour
acbc90a000
Add the platform-dependent stuff from renderingengine.cpp
2023-04-29 13:06:35 +02:00