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
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
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
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
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
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
b249e4523d
Use precise y-direction scroll values in SDL
2023-07-03 22:46:08 +02:00
041377c24c
CI: Add MSVC/SDL builds
2023-07-03 21:03:37 +02:00
83699a835d
Remove content-less comments
2023-06-15 10:01:34 +02:00
98589d2fd2
Remove unused fixed function materials
2023-06-15 10:01:34 +02:00
8c856408f5
Remove use of std::iterator
...
(Deprecated in C++17.)
2023-06-14 09:45:16 +02:00
cbc7aeb302
Bump C++ std to 17
2023-06-14 09:45:16 +02:00
09af5ac00d
Actually fix Android build
2023-06-06 16:20:06 +02:00
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
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
b958fdc271
Fix casing for Android device name (MATCHES
is case sensitive)
2023-05-11 22:34:08 +02:00
1387370260
OpenGL3: Sort out texture color format support
2023-04-29 13:07:57 +02:00
49b6ccde72
SDL: Implement getDisplayDensity() and setWindowIcon()
2023-04-29 13:06:35 +02:00
acbc90a000
Add the platform-dependent stuff from renderingengine.cpp
2023-04-29 13:06:35 +02:00
6a2a569233
Add IImage::copyToNoScaling
...
(Useful for const-correctness.)
2023-04-29 13:06:35 +02:00
1f15fd0805
OpenGL3: Support min/max blend modes
2023-04-24 21:43:36 +02:00
81ad195aa3
OpenGL3: New extension listing system
2023-04-23 09:48:04 +02:00
13680ef42d
OpenGL3: Use DrawBuffer[s] from mt_opengl
2023-04-18 23:22:53 +02:00
44f7c22bbf
OpenGL3: Version asserts
2023-04-18 23:22:53 +02:00
2e477a07d1
OpenGL3: Add version check helper
2023-04-18 23:22:53 +02:00
78d0819a2c
Add missing include
2023-04-18 23:22:53 +02:00
df07b3bf99
OpenGL3: Remove stencil buffer presence test
2023-04-18 23:22:53 +02:00
523590e16c
OpenGL3: Refuse 3.0 and 3.1
2023-04-18 23:22:53 +02:00
8cf02ea27f
OpenGL3: ExtensionHandler::initExtensionsNew: use GetInteger
2023-04-18 23:22:53 +02:00
efb660e7ed
OpenGL3: drop unused ExtensionHandler functions
2023-04-18 23:22:53 +02:00
5f88555ed3
OpenGL3: restore MRT support
2023-04-18 23:22:53 +02:00
4ee1ab261e
OpenGL3: Add driver-dependent feature checks
2023-04-18 23:22:53 +02:00
ab628e641c
OpenGL3: Add two missing OpenGL extensions to COGLESCoreExtensionHandler
2023-04-18 23:22:53 +02:00
1d782702e1
OpenGL3: new version format
2023-04-18 23:22:53 +02:00
c4ab49201b
Fix compile warning when appending UTF-8/ASCII strings to ustring16
...
String constants are (const char *), but UTF-8 strings must be treated as
an array of bytes when fiddling with the bits.
The following comparison fails without this change, as uchar8_t is a
signed char, which cannot be 0xC0:
const uchar8_t* c2 = other;
...
else if (c2[l] == 0xC0 || c2[l] == 0xC1)
...
2023-04-15 09:43:40 +02:00
896c825b9e
Fix ComboBox changing on scroll when in a scroll container ( #192 )
2023-04-14 19:58:13 +01:00
7a3fc62ada
Haiku: build fix
2023-04-11 20:16:35 +02:00
09043e3da7
Update MinGW dependencies
2023-04-11 18:19:36 +02:00
2d81374b34
Revert "Fix: Listbox was sometimes sending EGET_LISTBOX_SELECTED_AGAIN instead of EGET_LISTBOX_CHANGED."
...
This broke scrolling in listboxes, as they would always reset to top position.
reverts commit 1967d71cfb
2023-04-11 14:36:44 +02:00
aa1696a7e6
Use a buffer for quads indices
...
also use glDrawRangeElements for quad drawing
2023-04-08 19:08:03 +02:00
e01f285c8f
Extract and use singular CNullDriver::checkImage
2023-04-08 19:07:16 +02:00
5eb607f86f
Drop createImagesFromFile in favor of createImageFromFile
2023-04-08 19:07:16 +02:00
fc0440ff89
Drop IImageLoader::loadImages as only IImageLoader::loadImage is usable
2023-04-08 19:07:16 +02:00
462657960d
OpenGL3: Drop always-zero vSpecularColor from the shaders
2023-04-07 17:42:54 +02:00
6a152e8629
OpenGL3: Drop unused material property uniforms
2023-04-07 17:42:54 +02:00
718ba69e1b
OpenGL3: Drop unused fixed-function emulation materials
2023-04-07 17:42:54 +02:00
54314691ec
Fix mistake in a677f5a01a
2023-04-06 15:00:12 +02:00
36a3a7f349
Don't compile unused driver sources
2023-04-06 12:38:25 +02:00
ca5f005b74
Fix OpenGL3 driver to compile standalone
...
also test this configuration in CI
2023-04-06 12:38:25 +02:00
e850bd102a
Minor adjustments to configuration flow
2023-04-06 12:12:46 +02:00