]> git.lizzy.rs Git - irrlicht.git/log
irrlicht.git
23 months agoReturn nullptr pointer for empty core::array
sfan5 [Sun, 17 Jul 2022 10:22:10 +0000 (12:22 +0200)]
Return nullptr pointer for empty core::array

fixes minetest/minetest#12532

23 months agoSupport Unicode characters properly in SDL2 (#114)
ndren [Sun, 17 Jul 2022 10:08:37 +0000 (11:08 +0100)]
Support Unicode characters properly in SDL2 (#114)

23 months agoUpdate README a bit
sfan5 [Sat, 9 Jul 2022 22:11:49 +0000 (00:11 +0200)]
Update README a bit

23 months agoDrop Console and Framebuffer device
sfan5 [Sat, 9 Jul 2022 21:53:04 +0000 (23:53 +0200)]
Drop Console and Framebuffer device

fbdev is long legacy and the console was just an ASCII art gimmick

23 months agoStop dlopening libGL(ESv2).so
sfan5 [Sat, 9 Jul 2022 20:49:15 +0000 (22:49 +0200)]
Stop dlopening libGL(ESv2).so

GLX/EGL are supposed to abstract exactly this away,
this is a bad hack at best and might totally break stuff at worst.

23 months agoFix CreateContextAttribsARB fallback behaviour
sfan5 [Sat, 9 Jul 2022 20:04:51 +0000 (22:04 +0200)]
Fix CreateContextAttribsARB fallback behaviour

fixes minetest/minetest#12518

23 months agoAdd MSVC CI build (#26)
LoneWolfHT [Thu, 7 Jul 2022 19:44:48 +0000 (12:44 -0700)]
Add MSVC CI build (#26)

23 months agoCleaner ListItem initialization (#117)
JosiahWI [Thu, 7 Jul 2022 19:44:15 +0000 (14:44 -0500)]
Cleaner ListItem initialization (#117)

Should fix Coverity report CIDs 1516434 and 1518460.

23 months agoFix null dereference reported by coverity (#115)
JosiahWI [Mon, 4 Jul 2022 10:12:33 +0000 (05:12 -0500)]
Fix null dereference reported by coverity (#115)

23 months agoRemove dead code detected by Coverity (#116)
JosiahWI [Sun, 3 Jul 2022 17:34:12 +0000 (12:34 -0500)]
Remove dead code detected by Coverity (#116)

fixes coverity reports CID 15184781518465

2 years agoReset blend equation in 2D mode in OGLES1 and OGLES2 drivers
Dmitry Kostenko [Thu, 9 Jun 2022 19:56:09 +0000 (21:56 +0200)]
Reset blend equation in 2D mode in OGLES1 and OGLES2 drivers

2 years agoReset blend operation in 2d mode
Dmitry Kostenko [Wed, 8 Jun 2022 21:04:06 +0000 (23:04 +0200)]
Reset blend operation in 2d mode

2 years agoUse CGWarpMouseCursorPosition
paradust7 [Mon, 6 Jun 2022 03:05:07 +0000 (03:05 +0000)]
Use CGWarpMouseCursorPosition

2 years agoDon't crash attempting to scale zero-sized images
sfan5 [Wed, 1 Jun 2022 21:31:50 +0000 (23:31 +0200)]
Don't crash attempting to scale zero-sized images

fixes minetest/minetest#12393

2 years agoRemove more dead code (#108)
sfan5 [Wed, 1 Jun 2022 13:03:52 +0000 (15:03 +0200)]
Remove more dead code (#108)

2 years agoRemove core::list and replace uses with std::list (#105)
paradust7 [Sat, 21 May 2022 22:00:32 +0000 (15:00 -0700)]
Remove core::list and replace uses with std::list (#105)

2 years agoMake irrArray backed by std::vector (#101)
paradust7 [Sat, 21 May 2022 21:56:36 +0000 (14:56 -0700)]
Make irrArray backed by std::vector (#101)

2 years agoRefactor SDL device to use the same abstraction as other devices
sfan5 [Sat, 21 May 2022 13:19:57 +0000 (15:19 +0200)]
Refactor SDL device to use the same abstraction as other devices

In particular this makes the OpenGL procedure stuff work.
fixes https://github.com/minetest/minetest/issues/12265

2 years agoImprove IrrCompileConfig handling in cmake
sfan5 [Sat, 21 May 2022 12:26:52 +0000 (14:26 +0200)]
Improve IrrCompileConfig handling in cmake

2 years agoRemove irrMap and use std::map instead
paradust7 [Mon, 9 May 2022 06:00:12 +0000 (06:00 +0000)]
Remove irrMap and use std::map instead

2 years agoRemove extra memcpy in ogles2 driver
paradust7 [Wed, 11 May 2022 11:25:50 +0000 (04:25 -0700)]
Remove extra memcpy in ogles2 driver

2 years agoAdd hash for vector2d and vector3d (#93)
Richard Try [Tue, 10 May 2022 17:26:24 +0000 (20:26 +0300)]
Add hash for vector2d and vector3d (#93)

2 years agoBump revision
sfan5 [Sat, 7 May 2022 09:24:38 +0000 (11:24 +0200)]
Bump revision

2 years agoUnit tests for irrArray (#103)
paradust7 [Sat, 7 May 2022 09:21:41 +0000 (02:21 -0700)]
Unit tests for irrArray (#103)

2 years agoProperly strip windows binaries produced by CI
sfan5 [Fri, 6 May 2022 12:05:16 +0000 (14:05 +0200)]
Properly strip windows binaries produced by CI

2 years agoEnable GL_ALPHA_TEST in OpenGL driver for custom transparent alpha shaders
paradust7 [Wed, 4 May 2022 02:06:15 +0000 (02:06 +0000)]
Enable GL_ALPHA_TEST in OpenGL driver for custom transparent alpha shaders

2 years agoAdd missing overrides to fix compiler warnings
ndren [Sat, 30 Apr 2022 14:53:53 +0000 (15:53 +0100)]
Add missing overrides to fix compiler warnings

2 years agoReplace HWBufferMap with a list and back pointers (#99)
paradust7 [Fri, 29 Apr 2022 10:04:22 +0000 (03:04 -0700)]
Replace HWBufferMap with a list and back pointers (#99)

2 years agoSort out two -Wdeprecated-copy warnings
sfan5 [Thu, 28 Apr 2022 19:16:10 +0000 (21:16 +0200)]
Sort out two -Wdeprecated-copy warnings

- SMaterial copy constructor is removed entirely
  (same change in upstream trunk r6362)
- CMatrix4 gets an explicit, but default copy constructor readded

2 years agoAutomatedTest: improve and run under macOS CI too
sfan5 [Wed, 9 Mar 2022 21:43:35 +0000 (22:43 +0100)]
AutomatedTest: improve and run under macOS CI too

2 years agoFix COSOperator::getSystemMemory
sfan5 [Wed, 9 Mar 2022 21:39:25 +0000 (22:39 +0100)]
Fix COSOperator::getSystemMemory

The values it returns are in Kilobytes and it was broken on macOS.

2 years agoGet rid of various old compiler and platform checks
sfan5 [Sat, 26 Feb 2022 10:38:43 +0000 (11:38 +0100)]
Get rid of various old compiler and platform checks

2 years agoDelete more old files
sfan5 [Sat, 26 Feb 2022 10:23:23 +0000 (11:23 +0100)]
Delete more old files

2 years agoGet rid of all sprintf calls
sfan5 [Sat, 26 Feb 2022 10:18:19 +0000 (11:18 +0100)]
Get rid of all sprintf calls

2 years agoFix uninitialized variable in previous commit
sfan5 [Sat, 26 Feb 2022 11:09:18 +0000 (12:09 +0100)]
Fix uninitialized variable in previous commit

2 years agoCreate OpenGL context using CreateContextAttribsARB
sfan5 [Sun, 20 Feb 2022 22:18:17 +0000 (23:18 +0100)]
Create OpenGL context using CreateContextAttribsARB

2 years agoFix SDL2 include paths
sfan5 [Mon, 14 Feb 2022 17:26:59 +0000 (18:26 +0100)]
Fix SDL2 include paths

closes #96

2 years agoIBillboardSceneNode got functions to access meshbuffers.
cutealien [Tue, 8 Feb 2022 21:00:12 +0000 (21:00 +0000)]
IBillboardSceneNode got functions to access meshbuffers.
So uv-coordinates can now be modified directly (previously only possible via texture matrix).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6299 dfc29bdd-3216-0410-991c-e03cc46cb475

2 years agovector3d scalar operator/ and operator/= no longer multiply by the inverse but use...
cutealien [Thu, 3 Feb 2022 14:47:41 +0000 (14:47 +0000)]
vector3d scalar operator/ and operator/= no longer multiply by the inverse but use the expected division.
That was a bad case of premature optimization.
Multiplication is indeed faster, but when working with floats this can introduce some rather unexpected inaccuracies.
Like x/x suddenly no longer being 1.0 (something guaranteed by division).
If someone really needs this back, then please add some new function which makes it clear we don't just have a typical division here.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6298 dfc29bdd-3216-0410-991c-e03cc46cb475

2 years agoAvoid some warnings from static code analysis.
cutealien [Sat, 22 Jan 2022 15:54:43 +0000 (15:54 +0000)]
Avoid some warnings from static code analysis.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6296 dfc29bdd-3216-0410-991c-e03cc46cb475

2 years agoPrefer static_cast to reinterpret_cast where possible.
cutealien [Sat, 8 Jan 2022 18:22:20 +0000 (18:22 +0000)]
Prefer static_cast to reinterpret_cast where possible.
Just safer. Could probably do in a lot more places... another time.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6293 dfc29bdd-3216-0410-991c-e03cc46cb475

2 years agode-deprecate clearZBuffer
cutealien [Wed, 13 Oct 2021 10:12:04 +0000 (10:12 +0000)]
de-deprecate clearZBuffer
Lets just keep this one around. Easy to use, downward compatible and generally works as expected.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6259 dfc29bdd-3216-0410-991c-e03cc46cb475

2 years agoUpdate MinGW CI setup to match MT's
sfan5 [Fri, 4 Feb 2022 20:08:37 +0000 (21:08 +0100)]
Update MinGW CI setup to match MT's

2 years agoBump revision
sfan5 [Thu, 3 Feb 2022 20:50:14 +0000 (21:50 +0100)]
Bump revision

2 years agoGracefully handle lack of bundle on macOS
sfan5 [Mon, 31 Jan 2022 19:48:00 +0000 (20:48 +0100)]
Gracefully handle lack of bundle on macOS

should fix https://github.com/minetest/minetest/issues/10170

2 years agoGet rid of ancient workaround
sfan5 [Sat, 22 Jan 2022 20:00:54 +0000 (21:00 +0100)]
Get rid of ancient workaround

...that probably negatively impacted performance or something else

2 years agoUpdate CIrrDeviceSDL to support SDL2 (#85)
Emmanuel Hansen [Sun, 16 Jan 2022 11:16:15 +0000 (11:16 +0000)]
Update CIrrDeviceSDL to support SDL2 (#85)

2 years agoCB3DMeshFileLoader: abort if offsets point outside of file
sfan5 [Sat, 15 Jan 2022 15:05:01 +0000 (16:05 +0100)]
CB3DMeshFileLoader: abort if offsets point outside of file

fixes #70

2 years agoReset mesh animation state before recalculating normals (#90)
x2048 [Sun, 2 Jan 2022 19:41:03 +0000 (20:41 +0100)]
Reset mesh animation state before recalculating normals (#90)

2 years agoRemove unused attribute saving and loading (#86)
ROllerozxa [Wed, 29 Dec 2021 22:00:56 +0000 (23:00 +0100)]
Remove unused attribute saving and loading (#86)

2 years agoRemove more unused code (#87)
sfan5 [Wed, 29 Dec 2021 12:12:09 +0000 (13:12 +0100)]
Remove more unused code (#87)

2 years agoAutomatically use SSE registers for FP operations on i386 (#83)
William L. DeRieux IV [Sat, 11 Dec 2021 11:43:23 +0000 (06:43 -0500)]
Automatically use SSE registers for FP operations on i386 (#83)

2 years agoFix various GCC warnings
JosiahWI [Thu, 11 Nov 2021 21:53:46 +0000 (15:53 -0600)]
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

2 years agoRemove unused functions
JosiahWI [Tue, 9 Nov 2021 19:47:54 +0000 (13:47 -0600)]
Remove unused functions

renderLine16_Blend(), renderLine16_Decal(), renderLine32_Blend(), renderLine32_Decal()
clipLine()
frand()
drawRectangle() and drawLine()

remove unused private fields

2 years agoReduce _IRR_MATERIAL_MAX_TEXTURES_ to 4
sfan5 [Fri, 19 Nov 2021 19:27:51 +0000 (20:27 +0100)]
Reduce _IRR_MATERIAL_MAX_TEXTURES_ to 4

We don't use any more and reducing this is free memory savings.

2 years agoGet rid of MATERIAL_MAX_TEXTURES_USED
sfan5 [Fri, 19 Nov 2021 19:16:57 +0000 (20:16 +0100)]
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.

2 years agoUnconditionally load first texture matrix in OpenGL driver
sfan5 [Fri, 19 Nov 2021 18:27:47 +0000 (19:27 +0100)]
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

2 years agoFix updating of vertex normals for animated meshes (#77)
x2048 [Tue, 16 Nov 2021 11:30:31 +0000 (12:30 +0100)]
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.

2 years agoReplace some questionable math implementations
sfan5 [Sat, 23 Oct 2021 23:11:31 +0000 (01:11 +0200)]
Replace some questionable math implementations

fixes #76

2 years agoLimit dimensions of all image loaders to 23000x23000
sfan5 [Thu, 30 Sep 2021 14:40:41 +0000 (16:40 +0200)]
Limit dimensions of all image loaders to 23000x23000

2 years agoCImageLoaderJPG: protect size calculation from overflow by rejecting huge dimensions
sfan5 [Tue, 14 Sep 2021 18:02:40 +0000 (20:02 +0200)]
CImageLoaderJPG: protect size calculation from overflow by rejecting huge dimensions

2 years agoBump revision to 1.9.0mt4
sfan5 [Sun, 12 Sep 2021 18:56:20 +0000 (20:56 +0200)]
Bump revision to 1.9.0mt4

2 years agoReadd TGA format support (#64)
ROllerozxa [Mon, 13 Sep 2021 19:21:26 +0000 (21:21 +0200)]
Readd TGA format support (#64)

2 years agoRemove unused locale-like code, utf8 functions and headers
sfan5 [Mon, 30 Aug 2021 20:18:43 +0000 (22:18 +0200)]
Remove unused locale-like code, utf8 functions and headers

2 years agoChange clipboard to UTF-8 on macOS
sfan5 [Mon, 30 Aug 2021 19:53:04 +0000 (21:53 +0200)]
Change clipboard to UTF-8 on macOS

(untested)

2 years agoMake clipboard UTF-8 on Windows too
sfan5 [Mon, 30 Aug 2021 19:51:24 +0000 (21:51 +0200)]
Make clipboard UTF-8 on Windows too

2 years agoFix X11 selections (#55)
DS [Mon, 30 Aug 2021 19:44:56 +0000 (21:44 +0200)]
Fix X11 selections (#55)

This fixes all the issues with the X11 selection in addition to switching the clipboard to always be UTF-8.

2 years agoDrop _IRR_WCHAR_FILESYSTEM
sfan5 [Mon, 30 Aug 2021 18:44:51 +0000 (20:44 +0200)]
Drop _IRR_WCHAR_FILESYSTEM

never used and never worked for us.

2 years agoAdd support for OpenBSD
JosiahWI [Sat, 28 Aug 2021 16:12:40 +0000 (11:12 -0500)]
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.

2 years agoMerging r6196 through r6248 from trunk to ogl-es branch
cutealien [Thu, 26 Aug 2021 21:57:27 +0000 (21:57 +0000)]
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

2 years agoCIrrDeviceLinux: Add support For TouchInput.touchedCount
TheBrokenRail [Fri, 27 Aug 2021 08:58:46 +0000 (04:58 -0400)]
CIrrDeviceLinux: Add support For TouchInput.touchedCount

2 years agoReadd CSceneCollisionManager with only the method we need
sfan5 [Tue, 24 Aug 2021 21:51:48 +0000 (23:51 +0200)]
Readd CSceneCollisionManager with only the method we need

2 years agoFix version variable bug
JosiahWI [Mon, 23 Aug 2021 14:44:06 +0000 (09:44 -0500)]
Fix version variable bug

The variables had the wrong names, and wouldn't work properly.

2 years agoSet policies through CMake 3.9 to allow enabling IPO
JosiahWI [Sat, 21 Aug 2021 18:16:31 +0000 (13:16 -0500)]
Set policies through CMake 3.9 to allow enabling IPO

2 years agoFix absolute path $CXX not working in mingw build script
JosiahWI [Sat, 21 Aug 2021 12:50:56 +0000 (07:50 -0500)]
Fix absolute path $CXX not working in mingw build script

2 years agoRemove redundant and troublesome constants from the GL binding
hecks [Sat, 7 Aug 2021 20:50:13 +0000 (22:50 +0200)]
Remove redundant and troublesome constants from the GL binding

2 years agoAdd some missing constants to the GL binding
hecks [Sat, 7 Aug 2021 20:41:50 +0000 (22:41 +0200)]
Add some missing constants to the GL binding

2 years agoAdd a unified cross platform OpenGL core profile binding (#52)
hecks [Sat, 7 Aug 2021 19:56:00 +0000 (21:56 +0200)]
Add a unified cross platform OpenGL core profile binding (#52)

2 years agoFix incorrect documentation in README
JosiahWI [Sun, 1 Aug 2021 09:39:28 +0000 (04:39 -0500)]
Fix incorrect documentation in README

2 years agoExport targets to build tree (#49)
JosiahWI [Sat, 31 Jul 2021 11:04:06 +0000 (06:04 -0500)]
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.

2 years agoFix .x material slot parsing
hecks [Thu, 29 Jul 2021 03:05:34 +0000 (05:05 +0200)]
Fix .x material slot parsing

Co-authored-by: hecktest <>
2 years agoRestore missing entry in compile config
hecktest [Fri, 23 Jul 2021 16:22:59 +0000 (18:22 +0200)]
Restore missing entry in compile config

2 years agoDelete lots of unused features (#48)
hecks [Fri, 23 Jul 2021 14:23:44 +0000 (16:23 +0200)]
Delete lots of unused features (#48)

2 years agoFix CI by running apt-get update first
sfan5 [Thu, 22 Jul 2021 14:42:46 +0000 (16:42 +0200)]
Fix CI by running apt-get update first

2 years agoAdd macOS build to CI (#47)
fn ⌃ ⌥ [Sat, 17 Jul 2021 09:27:51 +0000 (02:27 -0700)]
Add macOS build to CI (#47)

2 years agoDrop unused and unportable "fast math" code
sfan5 [Fri, 16 Jul 2021 21:52:26 +0000 (23:52 +0200)]
Drop unused and unportable "fast math" code

2 years agoSet correct flags for static builds
sfan5 [Fri, 16 Jul 2021 21:11:59 +0000 (23:11 +0200)]
Set correct flags for static builds

this is only really relevant on Windows

2 years agoCIrrDeviceOSX: drop all video mode code
sfan5 [Fri, 16 Jul 2021 20:44:33 +0000 (22:44 +0200)]
CIrrDeviceOSX: drop all video mode code

2 years agoRemove various ancient support code
sfan5 [Thu, 15 Jul 2021 22:32:15 +0000 (00:32 +0200)]
Remove various ancient support code

2 years agoClone .editorconfig from minetest/master
hecks [Mon, 12 Jul 2021 16:03:15 +0000 (18:03 +0200)]
Clone .editorconfig from minetest/master

2 years agoAdd missing gitignore entries
hecks [Sat, 10 Jul 2021 10:28:17 +0000 (12:28 +0200)]
Add missing gitignore entries

2 years agoDrop XML implementation, related code and dependent features
sfan5 [Wed, 7 Jul 2021 14:52:49 +0000 (16:52 +0200)]
Drop XML implementation, related code and dependent features

2 years agoBump revision to 1.9.0mt3
sfan5 [Wed, 7 Jul 2021 14:32:35 +0000 (16:32 +0200)]
Bump revision to 1.9.0mt3

2 years agoDisable software drivers by default everywhere
sfan5 [Fri, 2 Jul 2021 17:48:00 +0000 (19:48 +0200)]
Disable software drivers by default everywhere

They'll likely be dropped entirely soon.

2 years agoFix path issues when imported as subdirectory
sfan5 [Wed, 30 Jun 2021 19:13:59 +0000 (21:13 +0200)]
Fix path issues when imported as subdirectory

2 years agoSet includes and libs on object targets
NeroBurner [Sun, 27 Jun 2021 21:04:56 +0000 (23:04 +0200)]
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.

2 years agoFix `getViewPort` returning incorrect results
Vincent Robinson [Mon, 21 Jun 2021 21:16:38 +0000 (14:16 -0700)]
Fix `getViewPort` returning incorrect results

2 years agoFix incorrect documentation on `setRenderTarget(Ex)`
Vincent Robinson [Mon, 21 Jun 2021 02:36:23 +0000 (19:36 -0700)]
Fix incorrect documentation on `setRenderTarget(Ex)`

3 years agoCXMeshFileLoader: initialize normals to zero during loading
sfan5 [Sat, 19 Jun 2021 20:22:47 +0000 (22:22 +0200)]
CXMeshFileLoader: initialize normals to zero during loading

3 years agoCIrrDeviceWin32: readd fullscreen using borderless maximized window
sfan5 [Tue, 15 Jun 2021 16:14:10 +0000 (18:14 +0200)]
CIrrDeviceWin32: readd fullscreen using borderless maximized window