Commit Graph

91 Commits (master)

Author SHA1 Message Date
cutealien b584c39295 ITexture::lock interface changed.
- mipmapLevel is now the second parameter as it was in Irrlicht 1.8 (but currently not doing anything)
- layer moved to third parameter
- New parameter lockFlags which allows to disabled flipping the texture upside down for RTT's on OpenGL.
Sorry for any inconvenience this change causes, but as I had to break the interface now anyway I decided to make it backward compatible to Irrlicht 1.8. Anyone already using the new "layers" feature in trunk will have to move the layer parameter now. But the last interface change which replaced the mipmaplevel with another variable with very different meaning wasn't a solution.
Mipmap support can also likely be re-introduced. At least I still haven't seen a real reason why it shouldn't be possible to have that anymore.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5663 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-11-22 19:13:59 +00:00
cutealien 7873503041 Fix test "renderTargetTexture"
Was using wrong parameter order when setting the rendertarget.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5660 dfc29bdd-3216-0410-991c-e03cc46cb475
2018-11-19 21:50:24 +00:00
fixeworks 56f0372862 Added new intersection methods, improved comparison to be reusable (without hardcoding rounding constants), added unit tests for some functionality
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5390 dfc29bdd-3216-0410-991c-e03cc46cb475
2017-04-02 12:41:13 +00:00
cutealien bf42d8d61b Fix serializing colors as strings and add a general test for serializing attributes as strings.
Had been 2 bugs in CColorAttribute playing together:
First was that getString was not overloaded so it used the CNumbersAttribute values instead.
Second was that setString used the wrong check when it got a number-array string, so the fallback for those strings had failed.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4812 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-29 15:59:53 +00:00
cutealien 1e828d9a08 Add tests for mergeFilename.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4681 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-02-13 00:17:50 +00:00
hybrid 0a2330890a Bump copyright to 2012
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4320 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-09-30 23:38:54 +00:00
hybrid 79ba8079f6 Add two new test cases for user clip planes and drawVertexPrimitive
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4292 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-17 17:05:01 +00:00
cutealien 60d67565c4 Enable screenshot test.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4186 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-12 21:01:16 +00:00
cutealien 86e5345306 - XML-reader now preserves all whitespace. So even newlines are now returned as EXN_TEXT nodes. Old behavior was dropping those, but it handled unix-style newlines badly and should rather have preserved all whitespace or none. Preserving no whitespace could be useful feature for the future.
- XML documentation updated where documentation and implementation had been different.
- c::b Linux now compiling engine with -fno-exceptions like the Makefile. Should probably use no-rtti as well, but haven't figured out how to do that without getting warnings for every c-file.
- tests now compiling with -fno-exceptions and defines _IRR_STATIC_LIB_ plus _DEBUG
- new function xmlCompareFiles in testUtils to replace binaryCompareFiles for tests with xml-files as binaries always broke with different wchar_t sizes.
- test ioScene now working on Linux-32


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4092 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-20 19:43:51 +00:00
cutealien 9c8790136c More fixed to make line2d work with integers this time in intersectWith and getClosestPoint.
I've renamed test line2dIntersect to testLine2d and added new tests there (lazy).
Similar fixes for integers should be done in line3d, but can't do that now, so has to wait.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4076 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-13 15:16:46 +00:00
cutealien 9184ea4c47 Merged revisions 4057-4071 from 1.7 branch.
- GUIEditor attributes have now scrollbar to be editable
- Remove warning when compiling line2d::intersectWith with other types than f32.
- CodeBlocks tests project file now compiling also on Linux.
- Slightly more lenient comparison in test textureRenderStates


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4072 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-11 13:07:07 +00:00
hybrid 40480a7822 Merged revisions 4001-4056 from 1.7 branch. Keycode updates, fix compilation errors, vector normalize error case fixed, joystick safety fixes, editbox updates, meshviewer modal window fix, isPointInsideFast changes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4057 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-02-01 23:29:32 +00:00
hybrid ad82f725be Add billboard test, which shows also why the non-uniform billboards fail at a certain point.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4003 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-03 16:49:43 +00:00
cutealien 6f1db5fc41 - Add vector2d and dimension2d attributes (both already had incomplete parts of implementations for some reason)
- Add tests for vector2d and dimension2d attributes
- Test currently failing on Win32-VS: collisionResponseAnimator, sceneCollisionManager, screenshot

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3996 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-29 22:56:28 +00:00
hybrid 31664bce48 Add triangleSelector improvements suggested by rogerborg. Plain triangle selector also needed an additional inverse matrix application, but now works as the octree case. Test cases also added.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3973 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-28 16:27:32 +00:00
hybrid 3f47f80798 Added two macros to call tests for all drivers, or for all hw drivers, with just one call.
Added tests to check whether the driver supports the necessary features, and stop early if it does not make sense.
Fixed line endings for testXML.cpp

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3819 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-07 21:09:32 +00:00
hybrid cae05e6a69 Fix segfaults in case the image is not created. Add test which simply checks which formats are supported for screenshots.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3752 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-25 16:39:47 +00:00
hybrid ed26bc8b78 Add test case for polygon offset (depth bias)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3655 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-21 17:24:35 +00:00
hybrid 5e4d495dcc Bump copyright dates to 2011.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3556 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-14 13:24:40 +00:00
hybrid f1cc2dca01 Fix writeScene change in order to write the given node and its descendants, not only the list of children to the scene file.
Add support for loading a scene file as childs of a given node. This will ignore the scene attributes and load all nodes of the scene, storing them as children of a given parent node. The rest will stay as before, including the default behavior to load scene attributes and all nodes directly into the scene manager.
Test cases added for both methods loadScene and saveScene. In order to find a node in the example scene from tutorial 15 I have added a name and ID to one of the scene elements.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3532 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-03 17:54:10 +00:00
hybrid 9f6d50804a Fix setMesh for skinned meshes, as reported by wing64. The joints cache was not updated, and hence the node reported and returned wrong joints.
Added support for resetting the transition time to 0.
Fixed some method names (correct camel case, create replaced by add, upper case fixed) in skinnedMesh.cpp

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3526 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-30 14:49:19 +00:00
hybrid 91426a212c New test for filtering 2d renders through 2dmaterial.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3506 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-12 21:41:16 +00:00
hybrid 4eeafca144 Enable test for projection matrix. I have removed the projection matrix tweak from OpenGL driver, as it does not seem to have any effect. At least no good one.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3501 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-11 17:11:30 +00:00
hybrid 014272f2c1 Fix the text scene node placing in viewports. The problem was, that the calculation took the absolute viewport dimension into account, while rendering into the viewport requires the screenwidth to be taken. Hence, the text was usually misplaced. The collision method can still be used for this mixed mode calculation (get screen coordinate during viewport rendering, use it for full screen rendering), but requires an additional parameter.
Software drivers don't support 2d rendering into viewports, so they still fail to properly position text (or other 2d things) into a viewport.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3489 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-07 15:22:58 +00:00
hybrid 3a66a00b68 Add a test case for mrt usage. Based on code by wing64.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3414 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-14 09:26:03 +00:00
hybrid d6eb580f95 Add a generic attribute interface for querying video driver attributes which are not necessarily of type bool. This interface allows to check certain supported features, such as the number of user clip planes, supported lights and textures, MRTs, and other things. The interface might change in the future, but it's fully functional already. The supported attributes are listed in the API docs of the function.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3408 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-12 11:19:42 +00:00
hybrid 6f27d721ef Rename test file and adapt project files.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3398 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-07 12:02:49 +00:00
hybrid da27ae4f3f Fix vertex alpha blending, as found by darktib
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3396 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-07 10:41:31 +00:00
hybrid bde7b62fef Add some more tests and fix a problem with transparency in the transparent_refelction_2_layers material as found by xDan.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3390 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-05 21:56:01 +00:00
hybrid 7e236b0192 Merged from trunk, revisions 3366-3387. A few bug fixes all over the place.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3388 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-05 19:33:06 +00:00
cutealien a716532bb0 Make sure tests run through again. Also cleaned them up a little removing the memory-leaks.
Many tests for burnings-renderer fail atm, but probably just because renderer was improved and tests would need new reference images.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3351 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-07-16 20:29:07 +00:00
hybrid 9e9e55a903 Merged revisions 3218-3270 from branch 1.7. Many bugfixes, mainly in GUI and device, a few mesh loader fixes. Octree culling bug fix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3271 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-04-03 22:21:50 +00:00
hybrid 20c762c5e8 Add test for self-shadowing
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3207 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-02-07 12:16:07 +00:00
hybrid 7260791edc Add test for stencil shadows with normal projection matrix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3206 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-02-07 11:54:50 +00:00
hybrid a7b73dbf51 New test for orthogonal Cameras.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3205 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-02-06 23:29:21 +00:00
hybrid 303e5c16dc Add a test for different light effects.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3204 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-02-06 17:05:49 +00:00
hybrid 96310b964d Merged revisions 3172:3197 from 1.7 branch. Some more bug fixes and doc updates from the 1.7 beta phase.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3198 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-02-02 20:53:57 +00:00
hybrid 675fd7637e Merge revisions 3139:3171 from 1.7 branch. Many new tests and bug fixes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3172 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-01-23 16:53:15 +00:00
hybrid 0ca3ba3744 Merged revisions 3089-3138 from 1.7 branch. Full merge, all changes from 1.7 beta phase up to now are included.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3139 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-01-08 11:46:38 +00:00
hybrid a8229b3f10 Merged from 1.6 branch, revisions 2936:3075. Several bugfixes for GUI, containers, file system.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3076 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-28 10:56:30 +00:00
cutealien 6eb1fa1e6e Add swap functions to irrMath and to the core classes.
Deprecate map::isEmpty() and replace it with map::empty() to make it similar to other base classes.
Rename array-test and add tests for list and map.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3060 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-20 16:55:15 +00:00
hybrid 3553813721 Fix some tests, add new test for loading textures from FileFolders.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3041 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-12 01:01:32 +00:00
cutealien 8bebbdbbc2 - Fixed serialization of stringw-arrays again and learned another lesson of "be very careful when changing const's".
- Added test for serialization
- Added operator != for quaternion.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3026 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-08 04:39:25 +00:00
hybrid e699ab8889 Add test for mesh cache.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2988 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-12-05 11:42:18 +00:00
cutealien 09b4f29944 Bugfix: irrArray should no longer crash when using other allocators. Corresponding test added. This was
caused because operator= and copy-constructor where not called because the the second template parameters 
was not used in those function declarations and so only functions for the default parameter had been 
created. 


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2949 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-30 14:51:59 +00:00
hybrid 76c4b0f813 Add access to miplevels in addTexture, texture->lock, and texture->regenerateMipMapLevels.
This allows to create custom mipmap textures manually, or provide them from certain image formats that come with precalculated mipmaps.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2912 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-21 23:24:31 +00:00
hybrid 9af18d89bc Fix tests.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2850 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-12 17:57:30 +00:00
hybrid 49901d26ab Fix output of the correct test number for sub-process
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2846 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-12 14:24:01 +00:00
hybrid 4577afdbea Avoid the many hanging processes. Add some more tests and output.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2845 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-12 13:45:16 +00:00
hybrid 2d3032c566 Some new tests.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2838 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-11-10 18:27:01 +00:00