Commit Graph

2766 Commits (5b156c1dca6663fcb7983b660beb927e1bc2defc)

Author SHA1 Message Date
hybrid 8e50010b4a Fix alignment problem with odd sized images
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4286 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 20:20:52 +00:00
hybrid 820108a79f Add mipmap generation for makeColorKeyTexture
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4285 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 16:22:33 +00:00
hybrid 516faec05b Add another saveScene overload which allows to pass in a user-created XMLWriter. Patch suggested by eversilver.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4284 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 15:20:22 +00:00
hybrid 23b8381c72 Remove empty destructor.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4283 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 15:19:04 +00:00
hybrid 490475edef Fix compiler problem with newer gcc.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4281 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 13:46:14 +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 86bd1032f9 ColladaExporter does now cache material-names on export by default which leads to smaller .dae files.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4279 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 10:36:25 +00:00
cutealien 9459acf1ee Added IColladaMeshWriterProperties::useNodeMaterial to allow handling custom ISceneNode implementation on export.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4278 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 08:49:46 +00:00
cutealien f1aea87c1a - IColladaMeshWriter now writes a scene by default (most tools can't handle .dae's otherwise)
- In CColladaMeshWriter the texcoords in in mesh-source and those in texture (for effects) don't use the same name anymore. bind_vertex_input does handle that connection and having the same name had complicated the code (and was confusing)
- In Collada export mesh-geometries can now be copied when different materials are using the same mesh. Reason was that many tools (all I tested so far including Irrlicht) can't handle such materials otherwise.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4277 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-14 20:17:39 +00:00
cutealien 26f44f6f48 quaternion conversions to and from matrix4 no longer invert rotations. Define IRR_TEST_BROKEN_QUATERNION_USE in quaternion.h allows compile-tests to find affected code (see changes.txt for more info). Loaders for b3d, ms3d, ogre and .X just use transposed matrixes now for downward compatibility - meaning if it worked before it still works - if it was broken before it's still broken. Same for CSkinnedMesh. For collada (.dae) loader this fixed previously wrong rotations.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4276 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-14 19:12:49 +00:00
cutealien 1cc1271e9b Add some documentation for last check-in.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4275 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-13 09:55:16 +00:00
cutealien 9f66a1f43d Distinguish on collada-export between DummyTransformationSceneNode and other nodes and export matrix for the former and position, rotation, scale for the latter. That way we can maybe get rid of the increasing the number of nodes on each import later on.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4274 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-13 09:50:31 +00:00
cutealien ad1775dce3 Fix documentation errors reported by greenya.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4273 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-12 10:28:01 +00:00
cutealien 41efacc9c1 - CGUIEnvironment::loadGui - loading a gui into a target-element no longer messes up when the gui-file contained guienvironment serialization.
- Improve IGUIEnvironment::loadGui documentation.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4272 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-11 18:23:23 +00:00
cutealien af0ccd9de8 Clean up some confusing variable naming in ColladaMeshWriter and build some id-string together a little earlier to not create it that often unnecessarily.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4271 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-10 16:26:11 +00:00
cutealien 78e936aae4 Simplify the IColladaMeshWriterNames interface somewhat and improve documentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4270 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-09 18:05:52 +00:00
cutealien f09f35e082 Make nameFor functions in IColladaMeshWriterNames non-const as it's not necessary in the writer and we don't know what people will do with it (and because I already needed it non-const to avoid ugly mutable variables in writing the example).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4269 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-09 12:36:50 +00:00
cutealien 8fbc2fb8fc - Colladawriter does now reset correctly (calling writeMesh twice failed before and writeScene twice didn't write light-nodes second time)
- Add some callbacks that allow users to use custom-names on writing
(I'll probably add an example as well soon for how to use all that - the problem is that there don't seem to be 2 tools out there interpreting Collada the same way and so we have to be rather flexible on export. And yeah - our own import also still  has way to go...)

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4268 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-08 17:04:26 +00:00
cutealien 7dc53232df - Colladawriter now exports materials per node when those are used in Irrlicht
- Colladawriter now writing matrices for node transformations as old solution did not work with CDummyTransformationSceneNode's.
- Colladawriter no longer create an extra node for the scenemanger as <visual_scene> has that job in Collada.
- Colladwriter no longer makes all Scenenodes children of ambient-light as that can be parallel on the same layer instead.
- Colladareader now creates the ambient-light correct instead of creating a point-light for it.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4267 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-03 16:13:41 +00:00
cutealien 80d80fcfe8 Add some warnings (just with ELL_DEBUG) to the not working position/rotation/scale access functions in CDummyTransformationSceneNode so it's at least a little easier figuring out when they are called when hunting troubles.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4266 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-03 15:40:06 +00:00
cutealien 5ccc141921 Add the usual count element to E_LIGHT_TYPE enum.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4265 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-02 22:08:04 +00:00
hybrid 2710585732 Add some default inits for opengl helper functions, as suggested by greenbird
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4264 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-29 23:33:45 +00:00
hybrid 865eee3d4b Avoid problem with buggy driver returns
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4263 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-29 23:07:25 +00:00
hybrid 424d87e8c3 Minor syntax problem with missing space after template brace.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4262 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-29 22:09:57 +00:00
hybrid aac4394cc5 Add new parameter to array reallocate function. This prevents a reallocation in case the array would become smaller. As the reallocation operation is quite time consuming, this can be avoided on request now, on the expense of more memory consumption.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4261 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-29 22:06:38 +00:00
hybrid dde2b58751 Fix comment to ASCII characters
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4260 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-29 22:01:38 +00:00
cutealien 2d13027a9c Add IAnimatedMeshSceneNode::getLoopMode (asked for by JLouisB)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4259 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-28 10:32:08 +00:00
cutealien d7b9290902 CSceneNodeAnimatorCameraFPS now resets the key-input when it was disabled (thx @ gerdb for reporting and patch-proposal)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4258 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-27 10:05:31 +00:00
cutealien b316f61dc9 Properly destroy OpenGL resources on linux (thx @curaga for the patch with id 3539332)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4257 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-24 20:25:36 +00:00
cutealien b64028c167 Fix type in define-check which caused newFontTool to output wrong message on Windows.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4256 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-21 16:32:44 +00:00
cutealien f6985825f3 Fix: newFontTool sln file for vc10 contained a wrong project name.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4255 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-21 15:53:16 +00:00
cutealien 8b69ccdce4 Fix some compile-warnings.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4254 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-21 01:32:37 +00:00
cutealien 2de64d5e6c Fix diplay bux in the attribute-panel of the GUIEditor. Fixes bug 3517314 (thx @Darkcoder for reporting).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4253 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-20 16:32:26 +00:00
cutealien d439c11f54 Unify spelling in documentation (color, behavior).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4252 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-20 12:49:43 +00:00
cutealien b52a040fe6 Allow caching cursor position on X11 to work around slow XQueryPointer calls. Resolves patch 3476712. Thanks @ hendu for reporting and patch-proposal. For more info: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=45525
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4251 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-20 12:25:32 +00:00
cutealien 90052d1ed9 Make sure after EGET_EDITBOX_ENTER and EGET_COMBO_BOX_CHANGED event processing no more code is executed for the corresponding editbox or combobox objects to allow clearing the environment on those actions (see comments on bug-id 2995838).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4239 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-11 18:10:43 +00:00
cutealien 37ed1c0be9 Minor fix for internal documentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4238 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-11 17:48:35 +00:00
cutealien b589323a49 Drop some objects in reverse order of grabbing in CGUIEnvironment.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4237 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-11 17:46:32 +00:00
cutealien 1e2341226a Update documentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4236 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-11 16:03:20 +00:00
cutealien de5f4b7af1 Add documentation to all IGUIElement's which events they are creating.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4235 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-09 13:55:44 +00:00
cutealien 954aad26d5 Use tab_size = 4 in documentation as that is used in Irrlicht sources.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4234 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-09 13:22:10 +00:00
cutealien e66e024683 Make shadows show again in D3D9 (NOTE: mini-shadow is still there and D3D8 not yet fixed as I'm not sure yet if this change is optimal)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4233 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-09 10:46:35 +00:00
cutealien 82ea8b53a7 Fix compile warnings for matrix4::setRotationAxisRadiansLH and matrix4::setRotationAxisRadiansRH found by greenya.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4232 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-07 10:41:20 +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
Nadro d432f415a2 - Added bool interface for a shaders constants.
- Fixed issue with an int array uniforms.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4229 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-04 13:59:21 +00:00
Nadro 7f01500fd1 - Improved texture handling in a shader callback (returned ability to bind a texture by a float interface).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4228 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-04 02:26:30 +00:00
cutealien 614b6894f5 Update changes.txt.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4227 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-02 18:44:43 +00:00
cutealien 642f4080b4 - Modified struct packing solution to work with gcc 4.7 on MinGW. Which makes for example bmp-loader work again (textures in example 01 for example). Note: If this should be backported to 1.7 we should maybe just set the -mno-ms-bitfield flag for mingw there (not as nice, but will probably work good enough as workaround for what we use in Irrlicht and we don't have our nice packing headers there yet so we would have to do that all over the place).
- Also added new packing headers to c::b project file.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4226 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-02 18:40:30 +00:00
Nadro d0d209e2ef - Fixed "if" instructions for AMD extensions related to blending.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4225 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-07-01 17:15:09 +00:00