ROllerozxa
2bbfa178ea
Don't link against SDL2main ( #265 )
2024-02-23 22:44:16 +01:00
sfan5
54de743641
Workaround for too old GL header on older SDL versions
...
Problem: Since the removal of !_IRR_OPENGL_USE_EXTPOINTER_ we require some quite recent
symbols to compile the legacy GL driver. (*) Since the previous commit we prefer including
them via SDL but those are sometimes too old.
(*) This was in fact always a problem since USE_EXTPOINTER is the default.
I guess people just had recent enough headers usually.
2024-02-23 21:31:33 +01:00
sfan5
3e8d8440e3
Vendor GL headers again
...
primary reason:
The unified GLES2 driver requires OpenGL headers (really), which Android does not provide.
2024-02-23 21:31:33 +01:00
sfan5
8189b2338a
Remove now unused legacy OGLES2 driver
2024-02-23 21:31:33 +01:00
sfan5
0a77ef5dc2
Enable unified driver with all devices
2024-02-23 21:31:33 +01:00
sfan5
b7bb4b5958
Remove all !_IRR_OGLES1_USE_EXTPOINTER_ code
2024-02-23 21:31:33 +01:00
sfan5
f28e442bfa
Drop all !_IRR_OGLES2_USE_EXTPOINTER_ code
2024-02-23 21:31:33 +01:00
sfan5
4cd5c3489e
Drop all !_IRR_OPENGL_USE_EXTPOINTER_ code
2024-02-23 21:31:33 +01:00
sfan5
52e4d72ae2
Migrate OpenGL cache and texture handler to GL pointers
...
this makes the OpenGL 3 driver free of GL symbol references!
2024-02-23 21:31:33 +01:00
sfan5
e60921f0cb
Drop old shader material functions
...
I'm not sure what these actually are, but the situation is the same as the last commit.
2024-02-21 21:53:38 +01:00
sfan5
fe3e41e7ea
Set minimum SDL version
...
It was determined that the touch/mouse hints only exist in this version.
Since it's from 2019 this should be a reasonable minimum.
2024-02-15 10:37:24 +01:00
SmallJoker
4299ee21d8
CMake: Move generator conditional expressions ( #281 )
2024-01-22 09:50:29 +01:00
sfan5
c3571261ca
Fix build with OpenGL ES 1
2024-01-17 17:55:19 +01:00
sfan5
88ca26c418
Define extpointer for SDL + OGLES2
2024-01-16 20:23:23 +01:00
David Heidelberg
73e62f8676
Keep RTTI for Minetest IPO/LTO
...
Minetest using RTTI, so we cannot apply the flag here
if we want to start using IPO/LTO.
If we keep `-fno-rtti` here, compiler loses part of informations and
cannot do efficient optimizations.
The benefit of using RTTI on Irrlicht disappears with IPO/LTO on whole binary.
Signed-off-by: David Heidelberg <david@ixit.cz>
2024-01-06 21:30:15 +01:00
Vitaliy
9a439a3646
Use SDL2 by default
...
Except on Android and macOS, for now
2023-12-17 18:46:08 +01:00
numzero
a07cfc0f7a
Require C++17 at the top level
2023-11-01 14:40:11 +01:00
Loic Blot
7cade6f27f
cleanup: remove _IRR_COMPILE_ANDROID_ASSET_READER_ build flag
...
it's enabled inconditionally on android
also remove some _IRR_COMPILE_WITH_ANDROID_DEVICE_ which are useless because cmake is already properly configured
2023-10-22 12:19:14 +02:00
Loic Blot
ae63f1bf02
build: drop _IRR_COMPILE_WITH_SKINNED_MESH_SUPPORT_
...
it's enabled inconditionally
2023-10-22 12:19:14 +02:00
Gregor Parzefall
c766c3a023
Fix character encoding conversion issues
2023-10-15 12:59:40 +02:00
Gregor Parzefall
5b2f1927d0
Revert #225 ( d98dc90b38
)
...
Fixes that Windows+SDL builds use the Windows Irrlicht device instead of the SDL Irrlicht device.
2023-10-04 23:29:59 +02:00
numzero
b89455f385
Build OpenGL3 by default
2023-09-17 21:07:07 +02:00
numzero
6a5fceb8fd
Hide OpenGL3 behind SDL2 (it won’t build otherwise anyway)
2023-09-17 21:07:07 +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
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.
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
sfan5
54314691ec
Fix mistake in a677f5a01a
2023-04-06 15:00:12 +02:00
sfan5
36a3a7f349
Don't compile unused driver sources
2023-04-06 12:38:25 +02:00
sfan5
ca5f005b74
Fix OpenGL3 driver to compile standalone
...
also test this configuration in CI
2023-04-06 12:38:25 +02:00
sfan5
e850bd102a
Minor adjustments to configuration flow
2023-04-06 12:12:46 +02:00
sfan5
a677f5a01a
Only try to link libraries when relevant feature is enabled
...
fixes #182
2023-04-06 11:56:04 +02:00
numzero
70ee4b05aa
Indicate chosen OpenGL ES 2 driver during configuration
2023-04-05 22:52:43 +03:00
numzero
4dda28450f
Provide sources as private to IRRVIDEOOBJ
2023-03-25 11:26:52 +03:00
numzero
d97d1708d6
Resolve conflicts with master
2023-03-25 10:42:47 +03:00
numzero
25a7074c9a
Remove all mentions of iOS
2023-03-14 17:54:08 +01:00
numzero
ba77d01c91
Error out early on unsupported SDL2+GLES1 combo
2023-03-13 19:16:06 +03:00
numzero
d81db9dd6d
Merge branch 'drop-irr-compile-config' into opengl3
2023-03-13 18:07:25 +03:00
Vitaliy
5a5a7d04b7
Drop IrrCompileConfig ( #163 )
2023-03-11 15:04:09 +01:00
numzero
b279810437
Consolidate import/export attribute definitions
2023-03-06 17:32:03 +03:00
numzero
e484698ba2
Restrict X11 options to X11 device
2023-03-06 14:22:48 +03:00
Vitaliy
a6d062ebd9
Apply suggestions from code review
...
Co-authored-by: sfan5 <sfan5@live.de>
2023-03-04 22:27:43 +03:00
numzero
8dd8652f5f
Split new GL3/GLES2 drivers
...
The classes are tiny wrappers currently but should they be customized, they are there
2023-03-03 20:29:36 +03:00
numzero
1326dfbcb1
Error out on unsupported configurations
2023-03-02 02:44:52 +03:00
numzero
01295c9ce6
Add OpenGL3 renderer
2023-02-27 17:05:11 +03:00
numzero
67f852be57
Drop obsolete configuration macros
2023-02-22 21:11:12 +03:00
numzero
5a2b807890
Move import/export macros into CMake
2023-02-22 21:11:12 +03:00
numzero
06db7b7ab7
Move platform detection to CMake
2023-02-22 21:11:12 +03:00