Commit Graph

302 Commits (9fd80a50eeef24d5864779aa1ce00d7343f1d851)

Author SHA1 Message Date
cutealien 77ec2c2bc3 Remove DX8 references from tests.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5069 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-03-23 20:44:22 +00:00
nadro ae476a0dc3 - Updated changes.txt.
- Removed project files for Dev-C++ and Visual Studio 2008 and older.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5022 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-01-11 20:20:12 +00:00
nadro 1300c4df95 - Added Visual Studio 2013 project files.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5021 dfc29bdd-3216-0410-991c-e03cc46cb475
2015-01-11 20:11:21 +00:00
cutealien f591a5acde Merge branch releases/1.8 revisions 4828:4923 into trunk:
- Fix bug with multiple SetPixelFormat calls.
- Fixed bug related to memory release in PNG image loader. Thanks elephoenix for it.
- Fix crash in CGUIListBox when users pressed end key folled by any other key in an empty, focused list box (thanks at porcus for report and patch).
- Fix use of enabling defines for wal2 (halflife) image loader. Thanks to hendu for noticing.
- Fix proper screenshot creation in test by inserting the stabilizeScreenBackground call.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4925 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-09-17 16:00:52 +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 2b685cfd24 Link to X11 on c::b project file for tests (got changed recently in other project files).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4811 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-04-29 15:13:31 +00:00
hybrid 7e28379c42 Add new test file to project files
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4695 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-02-18 23:19:46 +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 2892e70174 Add some error checking in test.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4665 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-01-13 20:05:16 +00:00
hybrid c4d80bece3 Indentation
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4664 dfc29bdd-3216-0410-991c-e03cc46cb475
2014-01-13 20:03:49 +00:00
hybrid 6c7ac760d4 Fix some indentation and white spacing before parantheses
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4493 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-04-04 16:31:34 +00:00
hybrid a01095adfe Add getRadius method for aabbox3d, as suggested by hendu
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4474 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-03-07 16:57:55 +00:00
cutealien 15bd95977a Add _IRR_COMPILE_WITH_XML_ define to allow compiling Irrlicht without xml (patch written by curaga)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4423 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-01-02 23:13:21 +00:00
hybrid ae25bdf202 Merged from 1.8 branch, revisions 4345-4378. All release fixes since the branch to 1.8, and some fixes after that. Now commencing development on this branch, and only bug fixes on the others.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4379 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-11-20 18:31:33 +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
cutealien a87bb3a063 - Fix a bunch of off-by one errors in irr::core::string in functions equals_substring_ignore_case, findFirst, findFirstChar, findNext, findLast, findLastChar, replace, remove and removeChars. This prevents some potential memory access errors, find functions no longer try to find the \0, replace no longer replaces the \0 and remove no longer tries to remove it (which did remove the last character instead).
- Fix a few new warnings in gcc.



git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4308 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-09-06 19:49:45 +00:00
hybrid 4e1426e465 Remove event handling in device constructor. Seems it was not really the cause for the problems, only the missing size update of the d3d9 driver. To avoid complications, only the least change was left in.
Also improved the userclipplane test to really show errors in case of the original problem.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4303 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-23 23:45:53 +00:00
hybrid 4b6531eb17 Anonymous namespace for test code to avoid name clashes
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4301 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-23 11:22:50 +00:00
hybrid 9f81024521 Test was using wrong size of screen
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4300 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-23 11:22:16 +00:00
hybrid ecc6ea3884 First try for MSVC2012 project files. conversion seems to have worked, though some warnings for 64bit targets were shown.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4298 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-22 23:14:16 +00:00
cutealien a83a87594a Replacing matrix4::setRotationRadiansLH and setRotationRadiansRH by setRotationRadians. Old functions had left handed and right handed just the wrong way round and contained an additional bug that did lead to wrong rotations (mixing up y,z). A single function for this is enough (people can just flip the axis) and this way people who already used the old functions (which only got added in trunk) don't just get new behavior but some compile error. Thanks to Randajad for finding the error with the wrong results, giving a testcase and insisting that there's really a bug when I didn't see it on first try :-)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4295 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-20 11:22:05 +00:00
hybrid d9f9a2ca50 Add list of test casses with numbers for easier access to single tests. We can also add some descriptions there.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4293 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-17 17:07:08 +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
hybrid 8d628796f9 Added default parameter to getMatrix
Change matrix pointer access to direct array operator access.
Add some test cases for quaternion methods.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4280 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 11:32:27 +00:00
cutealien 14a4a07e66 Add documentation and some compile-tests for matrix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4231 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-07 10:31:09 +00:00
cutealien 238f3b7bd8 Fix string::replace which failed replacing substrings at the end when the replacement was longer (thx @ zerochen for reporting). Corresonding tests added.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4230 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-07 09:14:59 +00:00
cutealien 27879dd9a7 - User can now set characters used for decimal point in fast_atof for localisation.
- Update changes.txt

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4224 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-29 17:04:18 +00:00
cutealien d4ee640740 Use another solution to ensure first animation frame is at start. Solution yesterday had the trouble that it was no longer possible to use setCurrentFrame before otherwise. Tests b3dAnimation and md2Animation working again.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4217 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-27 13:54:33 +00:00
cutealien 26b2b68a13 - COpenGLTexture::getOpenGLFormatAndParametersFromColorFormat now returning values for ECF_R5G6B5 which can be used in glTexImage2D. Fixes test renderTargetTexture. I've also added a few more error-checks in debug.
- Remove assert in opengl driver (already logs and asserts prevent tests from running through).
- NOTE: 2 new tests failing: b3dAnimation and md2Animation. Maybe due to animation fix from yesterday.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4216 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-27 10:54:12 +00:00
cutealien 9254ed9b27 Add 64 bit targets for examples and tests for VS2010.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4213 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-26 17:53:38 +00:00
cutealien a5d5488c48 Remove test isPointInsideWithSinglePrecision as triangle3d::isPointInside now rather includes more border points than risking to miss some anyway.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4187 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-12 21:32:42 +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 1e4a0a77fd Fix screenshots under Linux/OpenGL for formats ECF_R5G6B5 (failed before) and ECF_R8G8B8 (red and blue where switched). Note that R5G6B5 still has strange results when writing to file. But that's due to a bug in color-conversion, which is fixed already in 1.7 and will be merged to trunk soon.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4185 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-12 20:59:47 +00:00
cutealien 94968c4a8c Fix tests triangle3d:
- triangle3d::isPointInsideFast now using some epsilon to catch all points on the borders.
- triangle3d::getIntersectionOfPlaneWithLine calculates now with higher precision for more exact results.
- triangle3d::isOnSameSide (used by isPointInside) calculates now with higher precision and uses some epsilon to make it work with larger integers and less floating point troubles. Slightly slower now.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4183 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-11 15:24:38 +00:00
cutealien 2ea755420c Fix time for animated model in anti-aliasing test (we should kick out animations from such tests completely!). Results still not as in reference image, but model is anti-aliased. Lines not anti-aliased at value 2 (starts around 10 here). I suspect that's too much driver dependent. Increased requiredMatch to 99.4 as animation might have been reason for low test-value - decrease again if it still fails on other system and is really OK.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4182 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-05 19:13:24 +00:00
cutealien e33c2c5a9a - equalsByUlp rewritten slightly to compile with our gcc release settings without warnings.
- fast_atof tests now running on 64-bit (should've been last 64-bit specific trouble in tests).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4180 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-05 15:27:28 +00:00
cutealien 833ad991dd - Add function equalsByUlp to test for spacing between floating point numbers.
- Allow difference of 1 ULP in fast_atof tests (as that is still correct). Note that this only fixes part of the fast_atof test, the whole tests still fails on 64-bit because test_strtol still fails (that looks more like a real bug).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4179 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-05 11:46:37 +00:00
cutealien 3aa4260646 Prevent memoryleak in stabilizeScreenBackground.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4173 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-03 21:41:20 +00:00
cutealien 4acc86e82a Test matrixOps needs a slightly larger epsilon on 64-bit.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4172 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-03 18:59:24 +00:00
cutealien 54017deae9 Have to use fuzzy comparison instead of binary comparision in test writeImageToFile as it's using renderresult which can differ slightly in some pixels.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4171 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-06-02 20:25:29 +00:00
cutealien 7ae5d0817c Test ioScene needed time set to the number of the beast to work (I'm not joking man!). Works now independent of computer speed (but should probably use an updated irr file sooner or later - is this from irrEdit as the format looks outdated?).
Remove unused variables in billboards test and testUtils.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4170 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-05-29 21:35:31 +00:00
hybrid 01c9bd4c83 Fix 8bit grey image TGAs, which were not working due to missing palette. Also switched to RGB8 format, as otherwise a loss in precision would occur. Thanks to Klunk for the error report and a test image.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4160 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-29 23:16:29 +00:00
Nadro 9548b470d0 - fixed issues with a D3D driver and Aero effects.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4159 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-28 18:23:23 +00:00
hybrid f598f78667 Trying an updated reference image, draw2d image positioning changed slightly.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4154 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-25 22:51:01 +00:00
hybrid d313db45b0 Even more updated reference images with now white backgrounds of the GUI elements.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4153 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-25 22:46:11 +00:00
hybrid a76dc8faf9 Update reference images for viewPort test, also due to GUI skin changes
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4152 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-25 22:34:27 +00:00
hybrid cf9e122396 Break textureRenderStates test again by adding the test case for the dangling pointer (white texture OpenGL) problem. Fix will follow later, patch exists on the tracker already.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4150 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-25 13:58:30 +00:00
cutealien 156eadf7bf Only do single precision tests on 32-bit Windows (try 2)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4146 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-25 09:18:54 +00:00
cutealien cc2cdf4db0 Only do single precision tests on 32-bit Windows
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4145 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-25 09:10:56 +00:00
hybrid 86d9bb8df8 Fix reference images for texture matrix test, getting up to the GUI changes form the past.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4144 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-04-25 08:40:39 +00:00