aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-04-13Add back LightManagerHEADlightLizzy Fleckenstein
2023-04-13Add back lighting systemLizzy Fleckenstein
Code is taken from latest irrlicht trunk; this is relevant because there have been fixes to stencil shadows since 1.8.5 (irrlicht SVN revision 5933).
2023-04-11Haiku: build fixnephele
2023-04-11Update MinGW dependenciessfan5
2023-04-11Revert "Fix: Listbox was sometimes sending EGET_LISTBOX_SELECTED_AGAIN ↵sfan5
instead of EGET_LISTBOX_CHANGED." This broke scrolling in listboxes, as they would always reset to top position. reverts commit 1967d71cfba23fb54ac88cea64673f73af13bfda
2023-04-08Use a buffer for quads indicesVitaliy
also use glDrawRangeElements for quad drawing
2023-04-08Extract and use singular CNullDriver::checkImagenumzero
2023-04-08Drop createImagesFromFile in favor of createImageFromFilenumzero
2023-04-08Drop IImageLoader::loadImages as only IImageLoader::loadImage is usablenumzero
2023-04-07OpenGL3: Drop always-zero vSpecularColor from the shadersnumzero
2023-04-07OpenGL3: Drop unused material property uniformsnumzero
2023-04-07OpenGL3: Drop unused fixed-function emulation materialsnumzero
2023-04-06Fix mistake in a677f5a01ac428d16e0e83b021dd0e8cb1ee9f53sfan5
2023-04-06Don't compile unused driver sourcessfan5
2023-04-06Fix OpenGL3 driver to compile standalonesfan5
also test this configuration in CI
2023-04-06Minor adjustments to configuration flowsfan5
2023-04-06Only try to link libraries when relevant feature is enabledsfan5
fixes #182
2023-04-06Document new CMake optionssfan5
2023-04-06Merge branch 'opengl3' of https://github.com/numberZero/irrlichtsfan5
2023-04-05Indicate chosen OpenGL ES 2 driver during configurationnumzero
2023-04-02Mark the repo as root in the editorconfigVitaliy
Necessary due to CR/LF mess, it shouldn’t inherit the LF setting from Minetest.
2023-03-26Use non-static member vars for SDL clipboard / primary selection buffersDS
2023-03-26Revert "Avoid some broken calculations for IBoneSceneNode positions."sfan5
This was reported to cause broken models in some cases. reverts commit edb381bd5050712d1eb8875fe3a405000dd09a3d
2023-03-25Provide sources as private to IRRVIDEOOBJnumzero
2023-03-25Fix line endings in the new drivernumzero
2023-03-25Add shaders for COpenGL3DriverBasenumzero
Currently, they are identical to OGLES2 shaders, except of version specification.
2023-03-25Resolve conflicts with masternumzero
2023-03-24SDL: Support primary selectionDesour
Requires SDL >= 2.25.0 (newest master).
2023-03-24SDL: Support clipboardDesour
2023-03-24CGUIEditBox: Use primary selectionDesour
This is essentially the same as the commit in the minetest repo for GUIEditBox.
2023-03-24Implement X11 primary selectionDesour
2023-03-24Fix: Listbox was sometimes sending EGET_LISTBOX_SELECTED_AGAIN instead of ↵cutealien
EGET_LISTBOX_CHANGED. When pressed mouse was moved over an item before releasing the mouse button it was sending immediately EGET_LISTBOX_SELECTED_AGAIN instead of expected EGET_LISTBOX_CHANGED (mouse move changes do not send any events). git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6454 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24Use qualifed id instead of virtual function calls in CVertexBuffer constructorscutealien
Another find by cppcheck tool git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6448 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24Avoid undefined arithmetic on nullptr in buffer_offset functioncutealien
Not quite sure why it was done that way. Maybe to ensure we work with byte-pointers of correct size or something? Anyway, this doesn't seem to be defined in c++, so let's try working with a cast instead. Just something cppcheck tool complained about. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6447 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24Fix spelling of enums in header commentscutealien
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6445 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24Prevent potential 0 pointer access when release not acquired joystick.cutealien
Found by clang analyser. Not sure if it could really ever have happened, but won't hurt to fix git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6443 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24Fix some problems with CMatrix4::getRotationDegreescutealien
- Only the getRotationDegrees without parameter is allowed to try fixing scale. My fault when I added a new function which takes scale parameter, that one is not allowed to be changed. On the up-side - we know have for the first time an option which works in cases only scale and rotation had been used and the user still has the correct scale. Before any solution for that was broken - getRotationDegrees fixes 2 places which caused wrong results due to floating point inaccuracies New test for that got added - Document the current restrains and problems of getRotationDegrees and getScale some more. - Improve docs for other matrix4 functions. - Add some comments about further improvements (I'll try if I find time) Note: Irrlicht still assumes in at least 2 places (getting bone animations and Collada loader) that matrix decomposing works. Which it doesn't yet for matrices which switch handedness (or have further transformations like skewing axes) The bone animation is mostly fine for now with recent workaround (but that might cause other problems as it may be used too often), haven't checked Collada yet in detail. TL/DR: This improves things with getRotationDegrees, but does not yet fix all troubles. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6439 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24Avoid some broken calculations for IBoneSceneNode positions.cutealien
This is based on bugreport #458 reported by viwrap who also made a nice test-case model. Note: While solution seems to work and would even be faster, I'm not 100% sure yet if there are no downsides. The other solution seems to regard last column in matrices - thought I don't think we ever set or use that. And I also haven't found out yet _why_ the original solution goes wrong. But animation system uses right-hand quaternions unlike rest of Irrlicht which is obviously a bit dangerous, will have to check the conversions some day. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6438 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24Fix warningcutealien
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6434 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24Fix: Make CBillboardSceneNode bounding-box large enough to fit the billboard ↵cutealien
inside. It still won't work yet for scaled boundingboxes (or parents being scaled). But at least it's now large enough for typical unscaled boundingboxes. Before it was always too small - even for the simplest quadratic billboard case seen without rotation. Now it's always a bit too large, but that's way less of a problem (collisions still work and culling simply happens a bit less often, but not too often which is way worse) git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6431 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24Fix IGUIElements not getting a tab order because of invisible or disabled ↵cutealien
parents. First problem was that IGUIElement::getNextElement wasn't passing includeInvisible and includeDisabled flags recursively, so anything deeper than one level could fail if an element was disabled/invisible in between while it was created. Second problem was that setTabOrder(-1) did ignore disabled elements. So when any parent was disabled when elements were created they never got a tab order. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6428 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24Avoid ambigious conversions when compiling with c++20cutealien
Yay, more ugly casts needed. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6427 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24Unify & improve log messagescutealien
Lots of places where coders did not realize our Printer::log with hint adds a ": " string between message and hint Which caused uglier messages in a few places (added documentation for that, maybe helps?) Some added info in a few places Some whitespace unification Some spelling unification git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6414 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24Prevent crash when creating CCameraSceneNode while rendertarget has height 0cutealien
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6405 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24Minor const changes.cutealien
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6402 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24Avoid potential number overflows.cutealien
Found by VS code analyser git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6393 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24SpriteBank: error check on non existing textureNumberengineer_apple
seen in broken Fonts. unified getFrameNr git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6368 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24S3DVertex initialize color always. It's derived classes now both accept ↵cutealien
const S3DVertex& constructor. color intitialization has some cost, but we initialized all other values already (vectors are always set to 0). Don't think it's a good idea to have one value around which is random. S3DVertex2TCoords(S3DVertex& o) to S3DVertex2TCoords(const S3DVertex& o) simply because it makes more sense S3DVertexTangents(const S3DVertex& o) added because I'll need it later (and no idea why only S3DVertex2TCoords got one of those before). git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6359 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24CVertexBuffer no longer re-allocates stuff when type doesn't change cutealien
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6339 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24Add documentation that sourceRect of draw2dImage is based on the OriginalSizecutealien
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6324 dfc29bdd-3216-0410-991c-e03cc46cb475