Commit Graph

1948 Commits (31e8ed045a764685b5cf655df6bb21c940a9007d)

Author SHA1 Message Date
hybrid 3e71d976f8 Make use of new mipmap extension in case the card supports it. Patch also by Nadro.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4050 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-20 18:34:33 +00:00
hybrid b601dede10 Add mipmap support from FBO extension, patch by Nadro.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4049 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-20 18:27:53 +00:00
hybrid 1fda9980df Add vertex optimization algorithm submitted by curaga
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4048 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-20 18:08:14 +00:00
hybrid b34352deac rename texureBlend functions to textureBlend
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4047 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-20 17:54:33 +00:00
bitplane 7db87025c3 Fix for bug 3401933 - vertex color interpolation with shadow volumes in the scene
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4041 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-14 16:15:26 +00:00
bitplane c6833d9a56 Fixed bug in button sprites reported by RdR
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4040 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-12 20:44:44 +00:00
bitplane d6fe1e6007 Fixed button state sprite animations for pressed, focused and hovered.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4039 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-12 17:35:50 +00:00
bitplane ade2a3938c Added IGUIEnvironment::getHovered, returns the last hovered element.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4038 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-12 17:24:23 +00:00
bitplane fe73006f45 Removed unused sprite bank from spin box
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4037 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-12 17:21:59 +00:00
bitplane 7f017fa3ef Another warning fix submitted by curaga (3472442)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4036 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-11 16:12:30 +00:00
bitplane f4fdeb55a9 Fixed a couple of warnings, including one reported by curaga (3472442)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4035 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-11 16:09:49 +00:00
bitplane 86498e7371 Added serialization for terrain smooth factor, patch by RdR
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4034 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-11 15:36:15 +00:00
bitplane 99e84fdaba Implemented more button states for sprite banks, patch submitted by RdR
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4033 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-11 13:15:25 +00:00
hybrid 314d53a31a Fix billboard error which used the wrong width for top and bottom width of trapezoid billboards. The reason is the use of cross-product, which flips the vertical axis used in calculations. Properly documented in the code now, API now works as expected. Bug and fix provided by pc0de.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4030 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-06 14:26:04 +00:00
hybrid 5cd23141b2 Oops, misread the switch. Alpha representation always requires 32bit, so reverted to original code with just another empty default statement.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4029 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-06 14:23:33 +00:00
hybrid 9ce25254f7 Silence missing default case warnings in release mode. Patch supplied by init512
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4028 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-04 14:01:36 +00:00
hybrid c575836343 Add new normal render method to all places where this is already supported. Thereby replacing some of the old and time consuming normal renders, as pointed out by pc0de
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4026 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-04 01:04:35 +00:00
hybrid f1ec3dad93 Add method which draws the normals of a mesh buffer. Mainly for debug purposes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4025 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-04 00:29:21 +00:00
hybrid ef473d9335 Fix warning about conversion. We might have to do it vice versa, though, comparing the float values and passing a converted number down to getMesh.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4024 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-04 00:27:56 +00:00
hybrid bd60a5dcda SMaterial serialization patch by pc0de
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4023 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-01-02 15:35:56 +00:00
cutealien d8a7af194d Fix bug in getAttributeAsVector2d found by greenya.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4021 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-21 19:22:41 +00:00
hybrid 7d6d371bae Add a FPS setting for animated meshes. This allows to store an overall animation speed for a mesh, which enables reading this information from the formats that support it and set the animation speed in scene nodes accordingly.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4009 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-04 00:10:15 +00:00
hybrid 6fbb111507 Change normals back to previous values.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4008 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-04 00:04:25 +00:00
hybrid ca6ec7f85b Minor code optimization, indentation fixes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4007 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-04 00:01:36 +00:00
hybrid b5c7c9695c Change interpolation mesh to pointer usage and dynamic memory allocation. Necessary due to reference counting.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4006 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-03 23:51:53 +00:00
hybrid 6d9a31a037 Add functions and constructor parameter to set the distance of the maya camera from the currently used target.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4002 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-03 16:26:59 +00:00
hybrid 47d5711ece Merged from trunk revisions 3998-4000. Changes for triangle selector.
Also added a fix for proper update of animated meshes, as suggested by Reiko. This was missing from the recent update of improved selector usage and should now re-enable the proper handling of animated poses in selectors.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4001 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-02 17:25:49 +00:00
hybrid 39ca2f61a4 Merged from branch 1.7, revisions 3944-3997. Only minor code changes, Makefile fix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3998 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-12-01 00:26:22 +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 ca0a9cca3e Change new billboard API to use more common names and a better usable interface. Fixed documentation. Proposal for fix made by greenya.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3995 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-15 13:34:48 +00:00
cutealien a8fd29c8b9 Fix uninitialized variable in q3-loader (found by Hendu).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3992 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-09 19:39:08 +00:00
cutealien bf5890e814 - Add support for bsp brush entities. Written by Hendu.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3991 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-09 19:28:12 +00:00
hybrid 99cfad9dd1 Normals recalculation fix by Squarefox
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3990 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-06 21:35:34 +00:00
hybrid 83444c6bf2 More keys support by Auria
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3989 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-06 11:08:16 +00:00
hybrid a4d78dcbe9 Fix strict aliasing problem.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3988 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-02 23:29:31 +00:00
hybrid d4e32d2a3b Triangle selector improvements suggested by rogerborg a long time ago. Now fixed and properly working.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3984 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-01 21:10:01 +00:00
hybrid c2e1206eb8 Small part of the billboard patch from rogerborg
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3983 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-01 21:08:18 +00:00
hybrid e18cd0790c Another improvement from the selector patch
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3982 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-01 21:04:53 +00:00
hybrid e0a56a717a Constification of some values.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3974 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-01 08:26:20 +00:00
hybrid 688ec5b873 Fix Meshbuffer interface of md3 files. At least for some situations these should return the proper buffers now, and hence allow for stencil shadows and other things. We might need an animation update check, though, to handle multiple meshes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3968 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-24 10:44:01 +00:00
hybrid 594ed8174b Add cleanup in case of error.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3967 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-24 09:54:17 +00:00
hybrid 7f644d033d Window size fix by Auria. For now we simply check for any error during window creation and bail out safely. This avoids uncontrolled crashes of the app and may be handled by the app logic somehow.
Reordered some of the device attributes and ensured initialization of all values.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3966 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-24 09:51:10 +00:00
hybrid 9d3c630202 Fix indentation
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3965 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-24 09:28:22 +00:00
hybrid 0c0ee8be53 Add debug data switch for shadow scene nodes. With EDS_SKELETON and EDS_MESH_WIRE_OVERLAY one can draw the whole shadow volume (or just the wireframe of it) instead of just the shadow. Currently only implemented in the hw drivers.
Also fixed a somewhat slow way of not writing to color planes from alphablend(1,0) to proper colormask settings in d3d driver.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3964 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-24 00:44:45 +00:00
hybrid 72e5d28703 Enable file open dialog to restore initial path after close and add another parameter for optional start directory.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3962 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-23 23:56:38 +00:00
hybrid c54ab64e64 Fix for OSX mouse events in fullscreen by auria
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3960 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-23 00:22:24 +00:00
hybrid ba4172de61 OSX input patch by Auria
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3959 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-23 00:07:39 +00:00
hybrid eed14a0ee4 Add new methods for adding and removing file archives based on ifilearchive pointers. The existing methods are also enhanced by an optional return value of the newly added archive. Addition suggested and coded by Nalin.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3958 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-22 23:45:52 +00:00
hybrid c7ea807729 Change API of IVideoDriver drawStencilShadowVolume method to take an array of vectors instead of just the pointer and the number of vertices. We have this information anyway, so make us of it.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3957 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-22 11:28:39 +00:00
hybrid 8bd1f77c03 Unify two shadow volume methods. Add support for adjacency also for zpass, which makes this method much faster. Proper light scaling and capping still needs to be worked on.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3956 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-22 10:54:12 +00:00
hybrid c9867126ea Unify method interfaces for volume generation. Remove some checks which could make the shadow volume generate wrong results.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3955 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-22 10:32:39 +00:00
hybrid 2b1f45266c Fix ZFail method and simplify adjacency check
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3954 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-22 09:48:32 +00:00
hybrid af6caf86cb Some changes towards the new shadow algos. Not yet fully changed, only adapted some interface changes and local improvements.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3948 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-19 22:26:26 +00:00
hybrid d55550abb4 Only reindent and reorder
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3947 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-19 22:24:50 +00:00
cutealien 7f80317b90 Fix CBillboardTextSceneNode::OnAnimate to call base-class OnAnimate again (thanks at Erelas for bugreport+testcase).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3945 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-17 16:12:44 +00:00
cutealien 86c043ea52 All gui-elements now use "SColor" instead of "const SColor&" to unify interfaces somewhat (it doesn't really matter which way it's done - the only bad solution is doing it different in every second function). I don't dare changing the one occurrence of "const SColor&" in IGUISkin as skins are so often overloaded and so changing that would break too much user-code, will do that once IGUISkin is more seriously reworked. Sorry for anyone already overloading gui-elements IGUIEditBox, IGUIListBox, IGUIStaticText - you will have to change that as well. But I think in the long run it's better having this at least a little less inconsistent.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3941 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-11 17:35:47 +00:00
cutealien cbdbf04487 Messed up last check-in somewhat. Now all getColor functions in statictext avoid const& (which is OK as SColor is just a long).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3940 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-11 16:58:15 +00:00
cutealien e03bb4929f Add getBackgroundColor, isDrawBackgroundEnabled and isDrawBorderEnabled to IGUIStaticText (thx 4 patch from Nalin).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3939 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-11 08:41:26 +00:00
hybrid 5a663375b4 Remove calls to getVideoDriver by direct member access. Found by REDDemon.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3936 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-08 11:40:27 +00:00
hybrid 9a6c5fc747 Add flag to avoid duplicated skinning in one frame for the same mesh and animation frame. Needs to be checked if all cases where a setting has changed and skinning needs to be applied, has been properly marked and resets the flag.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3934 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-06 14:43:47 +00:00
hybrid fb9d9e0b42 Switch debug messages to ELL_DEBUG. Rename a helper function
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3933 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-04 23:17:34 +00:00
hybrid 29162bc2d4 Constification of statements. Add some bbox recalculations
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3932 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-10-04 23:05:05 +00:00
hybrid c6a8682ce6 Update trunk with missing files from libpng, and copy pnglibconf.h from scripts directory.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3931 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-28 23:37:30 +00:00
hybrid 6ee5963381 Merge trunk with new versions of jpeglib and libpng
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3929 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-28 23:03:44 +00:00
hybrid 39e76d36d2 Fix mem leak found by gbox.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3921 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-18 21:20:25 +00:00
cutealien f9b538f9ee - Added ISceneNodeAnimatorCameraFPS::getKeyMap and a new ISceneNodeAnimatorCameraFPS::setKeyMap.
- CSceneNodeAnimatorCameraFPS uses now SKeyMap instead of SCamKeyMap (structs were identical which was confusing and there wasn't any explanation in comments, so I decided to simplify it).
- Add some workaround to MeshViewer to show how we can currently fix the FPS-cam when users to alt-tab while moving. We can improve that some day when we have focus-events, but this works for now.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3920 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-14 14:07:54 +00:00
hybrid c40df30f9d Update to latest headers and extensions from OpenGL
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3919 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-14 00:00:43 +00:00
cutealien 5de816e573 - Avoid one call to OutputDebugStringA in logging (OutputDebugStringA got very slow when debugging since VS2010)
- Demote a few logging outputs in COBJMeshFileLoader from ELL_INFORMATION to ELL_DEBUG.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3918 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-13 10:57:06 +00:00
hybrid 5c67d339b4 Fix LZMA uncompression. Added test case to ensure proper decoding.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3914 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-09 23:38:59 +00:00
hybrid 480c284703 Add ARB_framebuffer_object extensions support
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3913 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-09 14:43:00 +00:00
hybrid fa754dd47b Add normals recalculation in case it is missing in the ply file
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3911 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-09 13:33:35 +00:00
hybrid afa978f2a5 Merge from 1.7 branch, revisions 3877-3908. Fix for getSphericalCoordinateAngles, some warnign fixes, md2 normal fix, several GUI fixes, isPointInside fix, zip endianess fix.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3909 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-08 21:50:10 +00:00
hybrid 5d7b7931e6 Fix rendering with only index buffers. Basically, this is now removed, because d3d seems not to support this. Hence we can only render with hw buffers, if both vertex and index buffers are enabled.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3908 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-07 17:04:10 +00:00
hybrid 65383f9fb9 Enable VBOs for water node.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3907 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-07 15:52:05 +00:00
hybrid 4486cee370 Thanks to Auria, this fix makes octree work with mixed lightmap meshes (i.e. meshes which mix meshbuffer types). Most b3d files do this, and now work properly with octree support. The fix is right now not perfect, because of incomplete tangent vertex creation in case this vertex type is also used. But fixing also this issue would mean a huge rework of the octree, which has to wait for now.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3906 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-09-07 07:31:53 +00:00
cutealien 62057f1ea2 CGUISpinBox range does now also use decimal places to avoid getting endless loops in setValue/verifyValueRange.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3902 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-08-09 14:34:25 +00:00
hybrid 5d5bbe11b7 Apply changes to fix issues with dynamic libs handling as suggested by mgiuca
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3899 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-08-04 22:50:44 +00:00
cutealien ac15f6e1ee Change editbox colors once more.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3897 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-08-01 10:16:55 +00:00
cutealien 8a7245c103 Update Makefile documentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3895 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-07-29 14:57:59 +00:00
cutealien 9120aebe73 Add early-out in collision for empty selectors.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3893 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-07-28 11:22:06 +00:00
cutealien 875abd25f3 Collada writer sets now set and input_set for TEXCOORD input and bind as some Collada tools want that (doesn't care yet about second UV-set, but also does not make it worse).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3892 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-07-27 10:03:11 +00:00
cutealien 471df3f0ab CSceneCollisionManager::getScreenCoordinatesFrom3DPosition uses now getCurrentRenderTargetSize instead of getScreenSize.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3891 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-07-26 14:29:56 +00:00
cutealien 8a6371c6ca Add serialization for CGUIComboBox::MaxSelectionRows
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3884 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-07-20 09:28:19 +00:00
cutealien 0d5d30acaf Add IGUIComboBox::setMaxSelectionRows and IGUIComboBox::getMaxSelectionRows
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3883 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-07-20 09:16:34 +00:00
cutealien 029b18658b Change editbox-colors to make them look similar to what we had in 1.7 (before background drawing had been fixed editboxes had used a mix of 5 different colors).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3882 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-07-13 21:35:55 +00:00
bitplane d6025d6362 Fixed a memory leak in CIrrDeviceStub, reported by Reiko
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3878 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-07-11 13:36:31 +00:00
cutealien 1e90e2d9b3 Merge revision 3848-3875 from 1.7 branch:
- EMIE_MOUSE_WHEEL messages now handled correctly in several gui-element when wheel isn't just 1.0 or -1.0
- Fix serialization for CBillboardSceneNode, it had missed 2 color
- Fix 'k' in bigfont.png
- Recalculate FrameRect and ScrollPos in CGUIEditBox when AbsoluteRect gets changed


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3876 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-07-07 21:56:31 +00:00
cutealien e373bc4cf4 Merged revision 3847 from 1.7 branch. Fix problems in textwrapping in CGUIStaticText. Did use wrong size and did ignore last word of the text. NOTE: this will need some more work now in trunk as trunk supports by now right-to-left text which probably needs similar fixes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3874 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-07-07 21:34:10 +00:00
cutealien 009a6bfc92 ColladaMeshWriter: switch y to (1-y) in UV's as Collada is right-handed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3870 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-30 11:10:08 +00:00
hybrid 1c495448f2 Getting onto a patch from an anonymous poster, I've added some else branches to avoid too large redundant code parts after unconditional returns. These might at least raise some unwanted warnings, though I don't know why an error would occur.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3869 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-27 08:37:56 +00:00
cutealien 4533956fab ColladaMeshWriter: Add light export. Meshname handling cleaned up.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3868 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-23 17:40:27 +00:00
cutealien 98b7d10ec9 Scenemanager switches from type ESNT_UNKNOWN to type ESNT_SCENE_MANAGER.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3867 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-23 12:55:31 +00:00
cutealien ffa921055e Fix compling on 64-bit. Remove warning. Add header to c::b project files.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3866 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-22 20:51:07 +00:00
cutealien 84291fd165 ColladMeshWriter: Unified functions in IColladaMeshWriterProperties some more. Can now export reflection and refraction and more flexible color-mapping (which means all effects can now be written). Also some fixed some schema-breaking when writing node-id's.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3865 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-22 19:49:14 +00:00
hybrid f64b0063a1 Add access and changeability to internal Randomizer.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3864 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-21 22:02:18 +00:00
hybrid f331031395 Allow seed value in Randomizer::reset
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3863 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-21 21:58:59 +00:00
cutealien caac1b4505 - Add getActiveFont to all elements which have setOverrideFont for cleaner code
- Add getOverrideFont to all elements which have setOverrideFont to have a consistent interface


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3861 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-21 21:41:10 +00:00
cutealien f5a2be6e11 Oops, I did accidentally use 'auto' in Irrlicht code. Better wait until c++0x usage is a little more common ;-)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3860 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-21 18:56:14 +00:00
cutealien 87f8637183 - add overloaded map::getValue which can return a reference
- simplified IColladaMeshWriterProperties interface
- ColladaMeshWriter can now write complete scenes as well as just writing single meshes.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3859 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-21 17:04:43 +00:00
cutealien 7d101163aa IGUIEditBox: Added setDrawBackground. Crash-fix with wordwrapping and spaces. Remove bug with spaces getting added to the end of each line. Add missing serialization for Border.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3857 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-20 20:36:07 +00:00
cutealien dd3ef0fdd7 CGUISkin::draw3DSunkenPane no longer ignores fillBackGround in non-flat mode. Also borderlines are no longer drawn overlapping to avoid ugly corners.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3856 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-19 22:52:18 +00:00
cutealien 3d930cba96 Add missing implementation for CDummyTransformationSceneNode::clone (thx @ Voxel for reporting)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3854 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-16 21:18:31 +00:00
cutealien 6d9fa7d053 Make IParticleSystemSceneNode::doParticleSystem public to allow rendering outside scenegraph.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3853 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-16 21:09:46 +00:00
cutealien 6296a1c1ff ColladaMeshWriter - add infrastructure to export transparent textures.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3851 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-15 15:28:02 +00:00
cutealien ac6e07f87d Make ColladaMeshWriter more flexible by giving user more control over several settings.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3850 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-15 10:47:42 +00:00
cutealien 71d1c79dc5 CFileSystem::getRelativeFilename:
- don't try to return relative filename to other partition on Windows (c:, d:)
- handle path with different upper/lowercase on Windows.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3844 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-10 11:15:45 +00:00
cutealien 35cca397b9 ColladaMeshWriter: switch to relative filenames for textures.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3842 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-09 20:15:03 +00:00
cutealien cd88467987 Ensure image names in ColladaMeshWriter conform to xs:NCName scheme.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3841 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-09 19:35:50 +00:00
cutealien 596ae90bdb - ColladaFileLoader respects now namespaces in materials when searching for texture-images.
- ColladaMshWriter does now write texture-data as well.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3840 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-09 16:55:15 +00:00
hybrid 7b5fa07671 Merged revisions 3729-3829 from 1.7 branch. Fixed serialization of camera nodes, fix array::erase, fix mem leaks in example 22, fix interpolation in SColorf, fix crash in collada loader.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3830 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-09 06:45:29 +00:00
hybrid 24e069488e Fix axis swizzle which was broken since my last larger change of the HL mesh loader.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3829 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-08 23:36:15 +00:00
cutealien 21509dd2ef Avoid crash in .mdl loader on 64bit unix systems.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3824 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-08 15:31:48 +00:00
cutealien d79c51324e Fix color writing in ColladaMeshWriter (Collada needs floats not integers).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3822 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-08 10:17:59 +00:00
hybrid 68bbf21e64 Fix shader version calculation
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3820 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-07 21:53:55 +00:00
hybrid b2f1c1ffd7 Fix attribute value for maximal lights. Add video driver feature flag for texture matrix support.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3818 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-07 20:12:26 +00:00
cutealien dabb165279 Reworked collada exporter somewhat so it no longer breaks the xml schema:
- blinn attributes have to ordered on writing 
- there is no flow="OUT" in accessor - param so I removed it (maybe that was from an older collada version?)
- material-name is without #
- input attribute is called offset not idx 
Also a little cleanup to avoid redundant code.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3817 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-07 19:11:28 +00:00
hybrid 23bb72ab6a Properly add the fix sent in by balrog, was formerly only partially applied.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3810 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-06 20:32:07 +00:00
hybrid a959a76b0c Unify incompatible parameter types, mentioned by balrog
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3809 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-06 20:19:17 +00:00
hybrid 34d1b8b827 Some patches from balrog
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3808 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-06 19:13:47 +00:00
hybrid db42c16874 Only indentation changes
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3780 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-02 21:34:40 +00:00
hybrid 3f697ffe81 Fix typo.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3779 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-02 20:33:48 +00:00
hybrid a6e94cc3e9 Changed name and signature of getOperationSystemVersion, which is now correctly called getOperatingSystemVersion. Also changed the internal type and OSOperator creation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3778 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-02 20:18:54 +00:00
hybrid 45914a477d Remove unused or elsewhere included libs from all targets
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3777 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-02 19:51:37 +00:00
hybrid edade62497 Some unicode fixes by Nalin et al.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3775 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-02 19:18:00 +00:00
hybrid 93764466ab Fix ifdef nesting. The linking against winmm was wrongly placed in an else branch.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3774 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-02 17:51:26 +00:00
cutealien 1869d1ec6c Added IGUITabControl::insertTab, IGUITabControl::removeTab, IGUITabControl::clear and IGUITabControl::getTabAt
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3773 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-02 13:31:33 +00:00
cutealien 30cf180d28 Fix crash in CFileSystem::getRelativeFilename
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3771 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-31 12:22:06 +00:00
hybrid eba0f91834 Fix d3d9 adapter reference, found by yoran.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3769 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-30 15:15:58 +00:00
hybrid d245db3a98 Move sw driver render support methods out of cimage class.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3767 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-29 00:04:41 +00:00
hybrid 0c7e433063 Fix mipmap overwriting after manually changing automatically generated mipmaps due to changing the base texture and triggering an auto update of the mipmaps. The auto update cannot be re-enabled afterwards for now, though.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3766 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-28 23:50:38 +00:00
hybrid 84eeb0e6de Added 32bit support to some more of the mesh manipulator methods. Unfortunately, the cloning methods (createXXX) will require huge code duplication, so I left them unchanged so far.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3765 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-28 22:54:07 +00:00
cutealien c77bc63189 Replace afxres.h by windows.h in Irrlicht.rc to allow compiling it with VS Express.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3763 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-27 10:22:10 +00:00
hybrid 9ce8dd8631 Fix issues with mipmap locking under OpenGL. For some reason, the texture was wrongly flipped, though correctly rendered. Test cases added and fixed for OpenGL driver, all others were correctly working.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3760 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-26 20:52:02 +00:00
cutealien cbc8f22484 Sorry, outcommented GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB now as it crashes when set to true on 32-bit Linux and crashes when set to false on 64-bit Linux.
The error is always: "No doublebuffering available." followed by "Fatal error, could not get visual."


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3759 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-26 20:37:59 +00:00
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 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 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 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 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 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 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 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 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 7b4ef0e489 Fix setting of filter modes in mipmap cases.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3689 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-05-01 12:26:25 +00:00
hybrid 9b1953ab33 Minor fixes for array fixing.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3688 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-29 22:43:30 +00:00
hybrid 56057e046e Fix regression, where very long words introduced an empty line
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3687 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-29 22:18:02 +00:00
hybrid f36090db01 Finally change d3d drivers over to the compact parameter passing version
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3683 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-28 15:49:16 +00:00
hybrid 430894045b Add new extensions (although unsupported) also to d3d8 driver, with nearest match to min/max blend.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3681 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-28 11:47:16 +00:00
hybrid 8173e66877 Another exotic extension, which can be emulated by the new AMD extension as well, but is mostly found on ancient SGI machines.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3680 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-28 11:45:37 +00:00
hybrid 4424ffec5f Support new blend op from recent AMD extension. OpenGL/AMD only for now.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3679 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-28 11:32:37 +00:00
hybrid 1dd826dad5 Update ogl extension headers
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3678 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-28 09:30:37 +00:00
hybrid 5d3424f579 Use new strtoul10 method where appropriate.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3675 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-27 22:32:47 +00:00
hybrid e1cd83c8b9 Use new strtoul10 method where appropriate.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3674 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-27 22:29:48 +00:00
hybrid 66649891ab Break text into lines after changing RTL setting. Avoid null pointer access if string is empty. Fixes sent in by Auria.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3668 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-27 20:33:57 +00:00
hybrid 20d2f925d1 Use advanced pixelformat chooser for more occasions.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3667 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-26 23:42:25 +00:00
hybrid f0d8ef93a1 Add function for framebuffer checking
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3666 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-26 23:35:49 +00:00
hybrid cd8a7f1aff Unify ogl_extension defines across Linux and Windows.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3665 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-26 23:15:45 +00:00
hybrid 579d213a3b rename methods to avoid the create prefix
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3664 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-26 14:57:01 +00:00
hybrid efa59a497b rename methods to avoid the create prefix
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3663 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-26 14:55:23 +00:00
hybrid dddac77a75 Add the actual blend equation support for MRTs to the driver.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3662 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-26 14:27:49 +00:00
hybrid 8f2de7d521 Add blend equation function for MRTs
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3661 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-26 14:26:26 +00:00