cutealien
07a43cfcaa
Add pointer-check for cursor before update to avoid crash when window generation failed.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3758 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-26 19:42:57 +00:00
cutealien
b5c52236f7
Change GUI-focus on TAB now after the active element got the TAB-key, so the element has a chance to prevent focus-changes.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3757 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-26 19:02:31 +00:00
cutealien
1f1df157de
glxChooseFBConfig needs pair parameters, I think GLX_FRAMEBUFFER_SRGB initialization was probably meant to be as in this change (crashs otherwise).
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3756 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-26 18:48:09 +00:00
hybrid
49be1f912b
Fix image assignment which was lost in recent changes due to copy/paste problem
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3755 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-26 18:12:26 +00:00
hybrid
be4fae0335
Fix comments
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3754 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-25 22:29:53 +00:00
hybrid
d542ddaa7a
Return 0 screenshot where targets are unsupported. D3D now supports automatic conversion to all basic color formats.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3753 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-25 22:28:15 +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
8d6dd90997
Add proper format support for all possible color formats in screenshot method.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3751 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-25 16:09:58 +00:00
hybrid
4eb8de5f01
Fix typo from recent changes
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3750 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-25 11:47:48 +00:00
hybrid
e78a326f2a
Remove references to CImage.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3749 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-25 10:53:20 +00:00
hybrid
3df56aee3b
Remove references to CImage.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3748 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-25 09:37:26 +00:00
hybrid
2fae98942d
Remove some unneeded includes.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3747 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-25 09:23:39 +00:00
hybrid
2603feb226
Fix color ordering
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3745 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-24 08:09:38 +00:00
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