Commit Graph

142 Commits

Author SHA1 Message Date
Emmanuel Hansen 53db262bd2
Update CIrrDeviceSDL to support SDL2 (#85) 2022-01-16 12:16:15 +01:00
sfan5 195759100f CB3DMeshFileLoader: abort if offsets point outside of file
fixes #70
2022-01-15 16:06:30 +01:00
x2048 2fec5e5dd3
Reset mesh animation state before recalculating normals (#90) 2022-01-02 20:41:03 +01:00
ROllerozxa 52e03a8485
Remove unused attribute saving and loading (#86) 2021-12-29 23:00:56 +01:00
sfan5 dd09fdcb4e
Remove more unused code (#87) 2021-12-29 13:12:09 +01:00
William L. DeRieux IV 4bdecbc6b7 Automatically use SSE registers for FP operations on i386 (#83) 2021-12-15 16:33:20 +01:00
JosiahWI 6d133e1bcc Fix various GCC warnings
- fix overload hiding
- handle missing enumeration values in switch
- remove extraenous semicolons
- always have defaults in color converter switch
- fix root cause of stringop warning
2021-11-24 22:07:26 +01:00
JosiahWI d4119ba664 Remove unused functions
renderLine16_Blend(), renderLine16_Decal(), renderLine32_Blend(), renderLine32_Decal()
clipLine()
frand()
drawRectangle() and drawLine()

remove unused private fields
2021-11-24 22:06:12 +01:00
sfan5 2f2d37dce6 Reduce _IRR_MATERIAL_MAX_TEXTURES_ to 4
We don't use any more and reducing this is free memory savings.
2021-11-19 20:27:51 +01:00
sfan5 d322b73e4c Get rid of MATERIAL_MAX_TEXTURES_USED
Another configurable knob of questionable usefulness,
especially since this inhibits certain optimizations
by making loop length dependent on a global variable.
2021-11-19 20:16:57 +01:00
sfan5 6779cb7254 Unconditionally load first texture matrix in OpenGL driver
This used to work in Irrlicht 1.8 and I tried to figure out
why it no longer did, but failed.
fixes minetest/minetest#11206
2021-11-19 19:34:53 +01:00
x2048 39cad3e618
Fix updating of vertex normals for animated meshes (#77)
Updates cached positions and normals of animated vertices
from the mesh. Useful when using meshManipulator to update
the normals.
2021-11-16 12:30:31 +01:00
sfan5 81bae5b717 Replace some questionable math implementations
fixes #76
2021-10-24 01:23:06 +02:00
sfan5 dbd39120e7 Limit dimensions of all image loaders to 23000x23000 2021-10-05 11:17:36 +02:00
sfan5 594de99153 CImageLoaderJPG: protect size calculation from overflow by rejecting huge dimensions 2021-09-14 20:07:44 +02:00
sfan5 713471e9a2 Bump revision to 1.9.0mt4 2021-09-14 19:31:32 +02:00
ROllerozxa ac57007c55
Readd TGA format support (#64) 2021-09-13 21:21:26 +02:00
sfan5 4389a15e0f Remove unused locale-like code, utf8 functions and headers 2021-08-30 22:42:13 +02:00
sfan5 8f386999a6 Change clipboard to UTF-8 on macOS
(untested)
2021-08-30 21:53:12 +02:00
sfan5 34f1f8d089 Make clipboard UTF-8 on Windows too 2021-08-30 21:51:24 +02:00
DS 9c4b6f25ab
Fix X11 selections (#55)
This fixes all the issues with the X11 selection in addition to switching the clipboard to always be UTF-8.
2021-08-30 21:44:56 +02:00
sfan5 75b4c05741 Drop _IRR_WCHAR_FILESYSTEM
never used and never worked for us.
2021-08-30 20:55:06 +02:00
JosiahWI 2dc2846c3f
Add support for OpenBSD
There were three patches OpenBSD applied to build Irrlicht, and I implemented two of them. The first required turning off joystick events on OpenBSD, and the second (which I didn't confirm was necessary) required some defines in os.h. The third patch would have added an include to CIrrDeviceLinux.cpp, but the file had changed quite a bit and I could not tell whether this was necessary, so I left it out, and it appears Irrlicht builds fine.
2021-08-28 18:12:40 +02:00
cutealien 9690c1b3e3 Merging r6196 through r6248 from trunk to ogl-es branch
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6249 dfc29bdd-3216-0410-991c-e03cc46cb475
2021-08-27 10:59:31 +02:00
TheBrokenRail c26ff3476f
CIrrDeviceLinux: Add support For TouchInput.touchedCount 2021-08-27 10:58:46 +02:00
sfan5 da33f80bb8 Readd CSceneCollisionManager with only the method we need 2021-08-26 22:17:35 +02:00
JosiahWI f9078a6a12 Fix version variable bug
The variables had the wrong names, and wouldn't work properly.
2021-08-23 17:10:23 +02:00
JosiahWI 1aab3db68b
Set policies through CMake 3.9 to allow enabling IPO 2021-08-21 20:16:31 +02:00
JosiahWI 4ba0f8d100
Fix absolute path $CXX not working in mingw build script 2021-08-21 14:50:56 +02:00
hecks da22e5d7c0 Remove redundant and troublesome constants from the GL binding 2021-08-07 22:50:13 +02:00
hecks f83dab83cf Add some missing constants to the GL binding 2021-08-07 22:42:18 +02:00
hecks 5bf68b5731
Add a unified cross platform OpenGL core profile binding (#52) 2021-08-07 21:56:00 +02:00
JosiahWI 7709e1e5f8
Fix incorrect documentation in README 2021-08-01 11:39:28 +02:00
JosiahWI 864e24774d
Export targets to build tree (#49)
It is insecure and inconvenient to necessitate installing IrrlichtMt to access the target export. A copy of the export is now placed in the build tree during configuration so that it can be directly accessed from any project by pointing find_package() to look at the IrrlichtMt source directory.
2021-07-31 13:04:06 +02:00
hecks 6c78f181b5
Fix .x material slot parsing
Co-authored-by: hecktest <>
2021-07-29 05:05:34 +02:00
hecktest ae81dbd942 Restore missing entry in compile config 2021-07-23 18:25:23 +02:00
hecks 4ab3de3bab
Delete lots of unused features (#48) 2021-07-23 16:23:44 +02:00
sfan5 dc2246dae7 Fix CI by running apt-get update first 2021-07-22 16:42:46 +02:00
fn ⌃ ⌥ 3cf9532a06
Add macOS build to CI (#47) 2021-07-17 11:27:51 +02:00
sfan5 1d66c921c2 Drop unused and unportable "fast math" code 2021-07-17 00:02:37 +02:00
sfan5 22c3219ff0 Set correct flags for static builds
this is only really relevant on Windows
2021-07-16 23:12:49 +02:00
sfan5 b2b000597a CIrrDeviceOSX: drop all video mode code 2021-07-16 23:12:45 +02:00
sfan5 0afd799002 Remove various ancient support code 2021-07-16 22:01:37 +02:00
hecks 2cc1a4e20a
Clone .editorconfig from minetest/master 2021-07-12 18:03:15 +02:00
hecks 95471afdcf
Add missing gitignore entries 2021-07-10 12:28:17 +02:00
sfan5 729c214c00 Drop XML implementation, related code and dependent features 2021-07-07 17:04:05 +02:00
sfan5 ecb30e3d96 Bump revision to 1.9.0mt3 2021-07-07 16:47:50 +02:00
sfan5 accf927874 Disable software drivers by default everywhere
They'll likely be dropped entirely soon.
2021-07-02 19:48:00 +02:00
sfan5 d62e0424f2 Fix path issues when imported as subdirectory 2021-06-30 21:13:59 +02:00
NeroBurner 924178ebf6
Set includes and libs on object targets
Instead of using the global `include_directories()` and
`link_libraries()` calls use the target versions
`target_include_directories()` and `target_include_libraries()` with
`PRIVATE` keyword instead.

The dependencies are libraries only, the headers are added to the build
instructions in a separate call. So the `target_link_libraries()` calls
are not needed for the object-libraries to be built.
2021-06-27 23:04:56 +02:00