Commit Graph

2475 Commits (e66e024683ca1513d10693313bbba91286f970e4)

Author SHA1 Message Date
hybrid 738b571e40 Change screenshot function to allow reading from other render targets as well. This is not yet fully implemented, just an API preparation for further features. Most drivers don't support the extra targets anyway. But it will be also possible to ask for different color formats, which should be possible on all drivers. Passing ECF_UNKNOWN will choose an optimal color format without the need of pixel value adaptions.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3744 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-24 07:15:26 +00:00
hybrid 73414257b5 Fix NAN error in getAngle of vector2d, patch by Rocko Bonaparte
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3743 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-23 07:29:44 +00:00
hybrid 5a7032e420 Add test vector from forum.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3742 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-22 20:40:30 +00:00
hybrid 847e4cb038 Add proper unit for video memory output.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3739 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-20 22:00:55 +00:00
hybrid d43cb8b531 Another inaccuracy we need to handle
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3738 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-20 21:59:13 +00:00
hybrid b1ddb0475d Fix render size update after render target change. Only happened with some render targets.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3737 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-20 21:29:13 +00:00
hybrid c889104aaf Add output about available video memory to d3d9 driver.
Allow changing zbuffer enable and write in 2d override material.
Introduce NO_CLIP hints to d3d9 and opengl driver for 2d mode. Since we clip all 2d operations manually, it should be safe to tell the driver to disable clipping here. Might help on slower machines and is generally suggested by the hw vendors. We might introduce a mesh flag for this as well in the future, in order to disable clipping for larger geometry as well.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3736 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-20 16:36:39 +00:00
hybrid 3e1e9eea34 Remove 2d render settings cache completely, as it didn't seem to speed up things, but only introduced complexity and failures. Speed up text rendering under dx again, just as before in OpenGL by skipping too many render state resets. Unified all three setRenderStates2DMode methods.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3734 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-20 14:25:30 +00:00
hybrid 1e0b237cc9 Fix cache handling for 2d setup settings
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3733 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-20 11:47:41 +00:00
hybrid 369febf7cb Disable the linearize flag if no SRGB handling. It's probably not necessary then, only in very special cases. But I'm not really sure about this...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3732 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-19 21:35:44 +00:00
hybrid f7d337d317 Fix 64bit problem with dds loader, not yet tested, though.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3731 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-19 20:11:28 +00:00
hybrid 20c0d588a6 Remove redundant members which are now in Params.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3730 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-19 20:10:20 +00:00
hybrid 92f1299cd2 Add flag to enable sRGB correct color calculations (e.g. blend and lighting). This allows for much better color calculations, but requires to change the explicitly defined colors in the code to be converted to linear color space.
Changed many init routines to use SIrrlichtCreationParameters struct instead of many single parameters.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3729 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-19 20:07:13 +00:00
lukeph 65120d77b8 -Fixed bugs in new 'blend operation' code, the 'if' checks on EBO_NONE could never return true, so everything was set to blend
-Fixed performance bug in CTerrainSceneNode, noticed that preRenderLODCalculations() is ran every render, instead of just when LOD data is recalculated.
  This increases the frame-rate on 'Terrain Rendering Example 12' from 410fps to 1300fps on my machine.




git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3728 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-19 17:19:23 +00:00
hybrid 13793ac522 Merged from branch 1.7, revisions 3607-3725. Fix some compilation errors, fix soname in Linux Makefile, calculation fix in vector2d class, CGUIScrollBar event handling fix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3726 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-18 21:32:00 +00:00
hybrid f80a8cd066 Fix png loader warning, also reordered transform calls such that only one test requires a late place after the read_update call. Added a test case which tests paletted png file loading and rendering.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3725 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-17 17:48:06 +00:00
hybrid f1440ebbe2 Fix loading of paletted images and other special cases
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3724 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-16 07:29:43 +00:00
cutealien 4f990e2084 Added IGUIListBox::getItemAt
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3723 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-15 22:07:31 +00:00
hybrid 52f84ab7e9 Change type for stored and passed lights array. In most situations, only the ISceneNode was used, and the type is not necessarily ILightSceneNode anyway. So generalize this interface and the storage arrays internally.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3722 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-12 16:46:20 +00:00
hybrid 667a64e566 Fix another const issue with the selector patch
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3721 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-12 15:19:19 +00:00
hybrid 0a18c65e90 Add proper compile time define for enabling usage of direct input joystick support (enabled by default)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3720 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-12 12:06:10 +00:00
hybrid 909ae75ff1 Fix debug messages in 3ds loader.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3719 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-11 10:11:05 +00:00
hybrid 2d3422d0d5 Add correct gamma handling to image loaders
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3718 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-11 10:07:38 +00:00
hybrid b5b254e1c5 Fix deprecation message.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3717 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-11 09:13:34 +00:00
hybrid 5eaa187004 Fix constness issues of new getSelector method
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3716 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-11 09:11:03 +00:00
hybrid c61e99a740 Fix project dependencies
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3715 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-11 08:55:33 +00:00
hybrid 426d9c82ba Test case fixed with latest changes for relative texture names.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3714 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-09 12:53:53 +00:00
hybrid 6c1777a8b6 Support relative filenames in serialization
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3713 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-09 12:52:13 +00:00
hybrid d2aba0fc2d Fix parent setting in new irr scene loader.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3712 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-09 12:50:57 +00:00
hybrid 652aa8aec1 Enable relative texture names in material serialization
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3711 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-09 12:50:08 +00:00
hybrid 29f591f3b0 Add support for relative texture names in atrributes
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3710 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-09 12:47:49 +00:00
hybrid 07de425732 Support relative filenames in serialization
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3709 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-09 12:42:24 +00:00
hybrid 649dfc93a1 Fix linker settings in vc9 project
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3708 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-08 21:47:51 +00:00
hybrid 8a9d63615c Add triangle selector methods to get back single selectors from meta triangle selector. Submitted by LexManos
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3707 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-08 21:46:44 +00:00
hybrid e13d17c2e1 Fix linker settings for joystick stuff etc.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3706 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-07 21:50:07 +00:00
hybrid 9fb936b1a6 Add support for DirectInput joystick handling. Thanks to axpnumtheory for the patch.
The code needs to be cleaned up a little more. But it seems to work properly and is the preferred solution according to MSDN. Both solutions will be kept in the code, the choice define will be moved to IrrCompileConfig later.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3705 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-06 23:22:30 +00:00
hybrid 24ffdaf20c Move joystick stuff into separate class
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3704 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-06 21:18:49 +00:00
hybrid 44c9d5393f Fix signed/unsigned warning.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3703 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-05 22:46:34 +00:00
hybrid 1db83c000e Remove extra qualification.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3702 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-05 22:22:00 +00:00
hybrid c28f47bb3b Added scaling draw2dimage method to burnings video. This fix is based on code submission from Auria.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3701 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-05 14:25:34 +00:00
hybrid de109a1f6a Re-enable tests with burnings video. Fix some whitespaces.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3700 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-05 00:02:57 +00:00
hybrid 2f8b537d25 Remove redundant code from quaternion class
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3699 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-04 15:09:43 +00:00
hybrid ba7ea55a6f Make debug data available to user interface
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3698 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-03 07:24:31 +00:00
hybrid 138dd5020d Remove WIP disabling of test cases.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3697 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-03 07:12:45 +00:00
hybrid 8165f8447e Slight cleanup, bringing some things towards Irrlicht.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3696 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-02 21:39:15 +00:00
hybrid 2463db9b5a Fix count value to 0 if extension is unsupported or context is gone. Fixes a bug found by hendu.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3695 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-02 19:29:16 +00:00
hybrid 81e59495bf Fix some problems with gimbal lock in quaternion to Euler method. Not yet completely going through the test, I guess it's a euler order problem.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3694 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-02 16:24:44 +00:00
hybrid 68f10e784d Check if low-level texture for RTT was created, otherwise return nullptr to signal failure in RTT creation. Thanks to stefbuet for pointing out this problem.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3693 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-01 23:02:57 +00:00
hybrid 73d2385d9c Add RTT format check, after an idea from Stefbuet
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3692 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-01 22:59:37 +00:00
hybrid 4d1cd9ee13 Added a test case for 2d filtering, provided by Auria from STK team. Fixed a bug in the OpenGL render settings.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3691 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-01 21:54:59 +00:00