Commit Graph

3421 Commits (master)

Author SHA1 Message Date
cutealien 7442e24ded Simplify code (no need to keep scroll-bar width in extra variable here).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5621 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-06-17 19:46:40 +00:00
cutealien 2246895ae1 CGUIComboBox uses now EGDS_SCROLLBAR_SIZE instead of EGDS_WINDOW_BUTTON_WIDTH for the width of the listbox button to allow changing that without changing window topbar height.
It also changes now directly when the value is changed in the skin.
Thanks @LunaRebirth for reporting. 
Forum-link: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=1&t=52297&p=303682#p303682


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5620 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-06-17 19:31:14 +00:00
cutealien 9d315a9354 CGUIListbox, CGUITreeView and CGUITable now resize scrollbars when EGDS_SCROLLBAR_SIZE in the skin changes without having to re-create the elements.
This also fixes the problem that drawing looked wrong when this value got changed after the elements were created.
Thanks @LunaRebirth for reporting. (Forum: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=1&t=52297&p=303682#p303682)

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5619 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-06-16 22:27:08 +00:00
cutealien 8f3b9e6c6a No longer let scrollbar-buttons get larger than half the size of the scrollbar element.
Fixes problem that buttons could overlap.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5618 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-06-16 21:53:58 +00:00
cutealien e3282308c1 Spelling fix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5616 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-06-01 10:20:15 +00:00
cutealien a916b5de6a spelling
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5615 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-24 22:37:27 +00:00
cutealien 609a6474f0 Prevent crash in CD3D9RenderTarget::generateSurfaces when a CD3D9Texture has no IDirect3DTexture9.
Increase log-warning level from information to error when CD3D9Texture::generateRenderTarget fails to generate a IDirect3DTexture9.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5614 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-24 10:53:43 +00:00
cutealien a7a90ff191 Add IVideoDriver::swapMaterialRenderers to allow swapping the renderer used to render a certain material.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5613 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-17 15:04:43 +00:00
cutealien 63ec10d099 Adding documentation about the way tangents/binormals are passed to shader.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5612 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-16 21:23:05 +00:00
cutealien 144123beab IMeshManipulator functions createMeshWith1TCoords, createMeshWith2TCoords and createMeshWithTangents no longer weld vertices while converting meshes. Use IMeshManipulator::createMeshWelded if you need that welding.
Main reason is that this wasn't exactly the expected or documented behavior.
While this welding was faster than calling createMeshWelded, we can still optimize createMeshWelded.
And it slowed down mesh-conversion in all cases where welding was not needed (for example some loaders already do that). 
It also increased memory consumption because the welding did allocate more memory for vertices than meshes needed (it allocated 1 vertex per index).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5611 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-16 21:12:54 +00:00
cutealien a8b9071f96 Add ITerrainSceneNode::setFixedBorderLOD to handle connecting terrain nodes without gaps. Thanks @diho for the bugreport, testcase and a patch proposal.
Forum: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=51220


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5610 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-14 21:03:11 +00:00
cutealien 1d99bd8ff2 PLY loader now works with files which use "st" instead of "uv" for texture coordinates. Thanks @JLouisB for patch.
This fixes loading from files generated by Blender or Assimp. 
Forum: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=52261


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5609 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-12 15:31:01 +00:00
cutealien fb39389bb8 STL writer does now also write binary files when EMWF_WRITE_BINARY flag is used. Based on patch from JLouisB. (Forum: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=52261)
(EMWF_WRITE_COMPRESSED also still works for downward compatibility)

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5608 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-12 15:24:33 +00:00
cutealien 2757651d10 Improved PLY exporter. Thanks for Patch from JLouisB.
Forum discussion: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=52261
- Support for UV and vertex colors.
- Support for binary PLY files export with the EMWF_WRITE_BINARY flag
- Fix for the meshes with 32 bits index


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5607 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-12 14:36:10 +00:00
cutealien c422dcbe4d Document IVideoDriver::makeNormalMapTexture some more.
Mainly to make it obvious that (at least for now) only the red-channel is used for 32-bit textures.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5606 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-09 20:50:45 +00:00
cutealien 95e4f04796 Example 09 can load russian filenames again on Linux.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5605 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-05-01 21:40:39 +00:00
cutealien 69787af02d Add B3DExporter script for Blender from SuperTuxKart.
It is copied from here: https://sourceforge.net/p/supertuxkart/code/17112/tree/media/trunk/blender_25/B3DExport.py
Reason is that STK uses now different scripts and this one was getting hard to find for users (that was the last version before they removed it).
It's GPL licensed, but not combined with rest of library, so no problem for us.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5604 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-03-18 15:11:26 +00:00
cutealien f02f226712 Fix wrong colors on big endian platforms with burnings renders. Thx @kas1e for reporting and @curaga for the patch (#318).
Note: this patch just removes some old #ifdef __BIG_ENDIAN__ code, so it's slightly suspicious. But it does fix the
wrong color problems on big-endian platforms. 
See http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=52177 for the discusssion.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5602 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-02-18 16:03:52 +00:00
cutealien 30c123214e Improve documentation about ECF_A8R8G8B8.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5601 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-02-06 20:12:30 +00:00
cutealien d276dcc9f2 Fix type conversion warning.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5596 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-12-31 20:43:45 +00:00
cutealien 803250affc Fix bug #440 where OpenGL driver enabled second texture for single-texture materials when setMaterial was called twice. Thx@ "number Zero" for bugreport and test-case.
This problem was introduced in Irrlicht 1.7. The cause was that material renders can change chache-values which were then not reflected in the internal LastMaterial of the OpenGL driver.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5595 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-12-31 20:24:55 +00:00
cutealien 12cab21629 Irrlicht icon now loaded with LR_DEFAULTSIZE to better support larger icon requests. Thx@ luthyr for report and bugfix.
Forum-thread: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=51422&p=298400#p298400


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5594 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-12-20 21:28:56 +00:00
cutealien cd876e4fe7 Cursor on X11 behaves now like on Win32 and doesn't try to clip positions to the window.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5593 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-12-19 23:00:31 +00:00
cutealien 3712ca9d97 Spelling.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5591 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-12-10 14:15:41 +00:00
cutealien c4247febe5 IImage::copyToWithAlpha has a new parameter to allow combining alpha value instead of replacing them.
This uses new blitters called BLITTER_TEXTURE_COMBINE_ALPHA. 
Thx @chronologicaldot for providing this patch and @burningreggae for his feedback.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5590 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-12-06 20:54:57 +00:00
cutealien c0f0b50915 Remove 'register' storage class specifier which is deprecated with c++11 (and did get ignored by c++ compilers anyway since a long time).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5589 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-29 20:46:29 +00:00
cutealien 5dc065e3f7 Remove unused variable.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5588 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-29 20:37:32 +00:00
cutealien 78f19c621b Rename internal function setRenderTarget in software drivers to setRenderTargetImage to avoid clang warning.
Clang does not like having non-virtual functions with identical names to virtual functions.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5587 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-29 20:30:58 +00:00
cutealien bc3eff7e40 Fix clang compiler warning.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5586 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-29 19:43:26 +00:00
cutealien 6a05db3a0a Prevent some compiler warnings when using clang.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5585 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-28 21:54:18 +00:00
cutealien fc1b290951 Fix a few places which called the driverType a deviceType (variable-names and documentation).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5584 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-22 17:09:56 +00:00
cutealien 42958c233a Move E_TEXTURE_TYPE enum from IImage.h to ITexture.h
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5583 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-22 17:02:55 +00:00
cutealien 164aeb5831 Get rid of some warnings from VS 2017 static code analyser.
(just cleaner, unlikely to have caused trouble in real code)

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5582 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-20 17:12:37 +00:00
cutealien e6cf90d594 The new EGET_ELEMENT_REMOVED event got... removed.
Sorry, it had sounded like a good idea when I coded it, but the original reason for asdding it (allowing the gui-enviornment to notice when elements are removed) never worked out anyway. And now I learned about other problems this can cause. Just too risky to use the event-system for this, have to find another solution some day.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5581 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-17 15:16:43 +00:00
cutealien 826aaf10ca Remove _ITERATOR_DEBUG_LEVEL=0 also in the static-lib debug properties in VS 2017 project.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5580 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-17 13:52:13 +00:00
cutealien 0de6f04378 Fix solution name. Switch rest of targets to v141.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5579 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-17 13:34:51 +00:00
cutealien 556eb4c95f Remove _ITERATOR_DEBUG_LEVEL=0 in debug project settings.
This was done to allow mixing debug/release versions in Irrlicht which was sometimes nice for testing and worked as we don't use STL. But it's not nice as it makes it hard to work with other libraries.
Also setting platform toolset to 141 (was just an error it got set to 140 in first check-in of the vs2017 project files).
Note: There will be more changes in future. We have to use different names for debug/release and certain c++ settings (for example mt vs mtd).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5578 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-17 13:22:30 +00:00
cutealien 1b0e050d90 Add VS2017 project files + solution for library (not yet done for examples & tools).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5577 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-16 13:28:33 +00:00
cutealien 340510629f Fix spelling in warning.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5576 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-10 14:19:52 +00:00
cutealien 00d79992a0 Add entry for ECF_UNKNOWN to ColorFormatNames.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5575 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-09 21:11:09 +00:00
cutealien 413a5b2504 Add some documentation about the workings of the attribute system.
(I hope I figured it out all correct)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5574 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-08 22:19:35 +00:00
cutealien 7a87a77a8a Document some bug/missing feature in the serializeAttributes tests.
(stringw arrays can't serialize to/from strings - that's ignored silently at the moment, not yet tested if/how it works in combination with xml-reader, but that one should or other tests would fail).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5572 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-07 00:30:49 +00:00
cutealien 51172244ed Remove unused functions CNumbersAttribute::isNumberList and CNumbersAttribute::isFloat.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5571 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-06 17:26:39 +00:00
cutealien 78572df3f1 Use index notation instead of row/column notation in CMatrix4::getInverse as in other matrix functions.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5570 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-06 16:59:10 +00:00
cutealien 2e3e75d049 Fixing compile problems with c++11 introduced in r5564.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5568 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-06 14:39:37 +00:00
cutealien 9c0cd04730 Add _IRR_COMPILE_WITH_PARTICLES_ to control compilation of particle system
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5566 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-06 14:18:17 +00:00
cutealien f37045af53 Fix: No longer adding CLOWMeshFileLoader code to library when _IRR_COMPILE_WITH_LWO_LOADER_ is not set.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5565 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-06 13:32:32 +00:00
cutealien 6e5b2c5978 Make all getter in IAttribute const.
I'm not sure really why attributes even have all the type conversion functions.
I wonder if we could replace all that stuff by IAttribute with a single get and set and a template parameter?


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5564 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-04 19:50:43 +00:00
cutealien a03af926e9 Add IGUIImage::setDrawBackground to allow disabling background drawing even when no texture is set.
I considered also adding more flags to allow background drawing when a texture is set, but couldn't 
really find a good use-case for that, so keeping it simple (also that case could be done 
otherwise with a second element and disabling background drawing for top-element completely).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5563 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-03 22:34:46 +00:00
cutealien 99f957efe9 Update documentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5562 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-11-03 21:42:16 +00:00