Commit Graph

1076 Commits (3d46ce96388d4c61f07eab6570596b5d55d7f76b)

Author SHA1 Message Date
hybrid 3d46ce9638 Reenabled the vertex alpha mode if fx&32 set, as necessary for the terrain blending from xDan.
Changed texture loading order to original place, mesh directory, working directory.
Replaced file handling method by FileSystem versions. Changed readString to use a reference instead of return by value.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2475 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-13 22:17:53 +00:00
hybrid ba3024f023 Merged revisions 2440:2473 from 1.5 branch. obj writer shininess fixed. Shadow volume removal fixed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2474 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-13 13:14:32 +00:00
hybrid 0966a65698 Remove exceptions from irrMap.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2473 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-13 13:08:10 +00:00
hybrid ba58d26ff0 Use core::array instead of C arrays.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2472 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-13 12:49:29 +00:00
hybrid b8155bde74 Fix warnings.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2470 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-13 08:36:33 +00:00
cutealien 01339feefc - Add mouse events EMIE_MOUSE_DOUBLE_CLICK and EMIE_MOUSE_TRIPLE_CLICK for Linux, Win32 and SDL.
- Fix compiling of SDL on Linux (sorry, was my fault)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2468 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-12 03:54:01 +00:00
hybrid 63a3790722 Fixed up version of the OpenGL ARB shader "parallax map and normal map with fog" patch. The code requires little changes to the ShaderMaterial in order to reuse existing shader renders, as we now have an array instead of one shader handle. Also, vertex and pixel shaders need to be adapted for fog usage, namely by setting the fogcoord in the vertex shader and adding a comment into which Irrlicht will add the proper fog option. Documentation will follow once we have cleaned up the shader usage.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2467 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-11 23:47:00 +00:00
hybrid 8486bddd81 Remove wrong event method, shouldn't go into the repository...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2465 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-10 12:55:48 +00:00
hybrid 6375ee4225 Fix indentation - Note to all: We use tabs...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2464 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-10 09:05:19 +00:00
hybrid 359fe4408b Reenable default handling for syskeys, in order to get close window events from alt+f4
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2463 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-09 21:53:08 +00:00
hybrid 9f83642a95 Avoid window destruction if using external window. Patch by tp4me.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2461 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-09 13:01:45 +00:00
hybrid 62fc22014b Fix for proper system-key handling under win32, submitted by mrarsoft and probably others before...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2459 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-09 11:30:25 +00:00
hybrid 2abda10ebd Put the dmf stuff into irr namespace as suggested by Piraaate.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2455 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-09 09:05:59 +00:00
hybrid af6ec8b2a4 Fix warnings about long qualifier.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2454 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-09 09:04:33 +00:00
bitplane f1800c0490 Fix for folder archives, reported by Karol Krizka.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2453 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-08 13:49:23 +00:00
bitplane a7f1c19c44 Added gzip support to ZIP archive loader. To load a tar.gz you must load it twice, like so:
fileSystem->addFileArchive("path/to/myArchive.tar.gz");
       fileSystem->addFileArchive("myArchive.tar");

Removed buggy and unneeded use of Byteswap in TAR loader.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2449 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-07 10:45:48 +00:00
bitplane 1c9169372a Fixed negative unsigned integer bug normal map generator
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2448 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-06 09:43:21 +00:00
bitplane f0e4959484 - IFileSystem changes:
- Added TAR archive loader.
   - Renamed the following functions-
      IFileArchive::getArchiveType to getType
      IFileSystem::registerFileArchive to addFileArchive
      IFileSystem::unregisterFileArchive to removeFileArchive
      IFileArchive::openFile to createAndOpenFile
   - New enum, E_FILE_ARCHIVE_TYPE. getType on IArchiveLoader and IFileArchive now both return this.
   - IFileSystem::addFileArchive takes a parameter to specify the archive type rather always using the file extension. IFileSystem::addZipFileArchive, addFolderFileArchive and addPakFileArchive now use this but these functions are now marked as deprecated. Users should now use addFileArchive instead.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2447 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-06 09:10:23 +00:00
bitplane 802af4458f Added clipping to console device font
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2446 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-05 12:45:34 +00:00
bitplane 992af48fb4 Fixed (new?) bug in edit box where typing characters over selected text didn't disable selection.
Font tool now compiles again (only tested in windows)

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2445 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-05 10:12:48 +00:00
bitplane d0229edd2d Fix highlighting in IGUIEditBox where kerning pairs are used in the font. For example in future italic, OS or other custom fonts.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2444 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-05 08:40:41 +00:00
hybrid 5f38dfa9c5 Backport of patch from ogl-es branch.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2443 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-03 09:29:05 +00:00
hybrid c223658672 Merged revisions 2407:2436 from 1.5 branch. CopyToScaling bug fix, big endian .x bug fix, STL loading fixed, binary attributes loading fixed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2440 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-02 09:39:50 +00:00
hybrid 8e9c3de276 Merged revisions 2349:2403 from 1.5 branch. Added defines for version handling, added method to check for drivers. Fix bugs in Joystick handler, filename handler, and byteswap.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2439 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-02 08:59:55 +00:00
monstrobishi 7d00cc91d1 - Renamed texture setting function (setTexture) in most video drivers to setActiveTexture and made sure it has the same signature. This avoids confusion with similarly named methods in other classes (Such as SMaterial) and the consolidated method signature will hopefully help future plans for better abstracting texture usage across all drivers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2438 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-02 06:43:24 +00:00
bitplane 677f750e3f Added some doc comments to IVolumeLightSceneNode.h and changed "colour" to American English "color" for consistency
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2437 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-07-02 04:03:43 +00:00
hybrid 1c560f5b23 Fix indentation and disabling float texture formats where not supported. This will probably need some proper transformations instead on those systems.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2434 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-24 20:36:14 +00:00
hybrid a86a07567e Some safety add-on to cope with bad OpenGL implementations.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2433 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-24 20:34:21 +00:00
hybrid 0fa0ac5c0f Fix GLX extension handling.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2432 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-24 20:32:13 +00:00
cutealien cc1e871092 Remove some debug-code.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2431 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-24 15:05:07 +00:00
cutealien 2221cee889 - IOSOperator::getTextFromClipboard returns now const c8* instead of c8*
- Support for copy&paste on linux (X11) added (fixing bug 2804014 found by Pan)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2430 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-24 14:44:51 +00:00
cutealien da870385bd bugfix for 2795321 found by egrath: Don't rely anymore on broken XkbSetDetectableAutoRepeat.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2428 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-20 09:22:51 +00:00
cutealien 969b6b786d bugfix: Use make_lower throughout for spritebank filenames (found and patched by Ion Dune)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2427 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-19 22:17:54 +00:00
hybrid 300bd095ae Fix dll move under win32 with c::b.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2424 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-19 09:37:48 +00:00
cutealien 09cd4c3869 bugfix: CMountPointReader::openFile no longer returns file for empty filenames. Corresponding test added.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2421 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-15 15:49:16 +00:00
cutealien 2dc5c7d7d5 - Reversed change in vector3d::normalize. The check for 0 vector isn't there for optimization, but to prevent NAN values.
Works now again as documented and a corresponding test has been added.
  Does fix bug 2770709 (https://sourceforge.net/tracker/?func=detail&aid=2770709&group_id=74339&atid=540676)
- Animations can now be paused by setting the fps to 0.
- Avoid fp-precision problem in getPickedNodeBB (see also 
http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=33838&highlight=). 
  This change might also fix the problem with picking nodes found by aanderse 
(http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=32890&highlight=)



git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2419 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-11 22:56:51 +00:00
cutealien 2391338b57 - Fix bug in CSceneNodeAnimatorCollisionResponse::setWorld as found by Quillraven.
- Fix simliar bugs where object have been dropped accidentally in set functions in many places


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2417 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-10 20:13:37 +00:00
hybrid f56fd93a12 Fix make install.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2413 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-08 15:36:06 +00:00
cutealien 124e9402aa change EGET_EDITBOX_CHANGED: triggers now only on user input not on explict changes (same like other _CHANGED events)
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2412 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-07 02:13:31 +00:00
cutealien a7865ae234 - adding events EGET_EDITBOX_CHANGED and EGET_EDITBOX_MARKING_CHANGED
- prevent editbox from recalculating its textbreaking each frame
- let spinbox react on each textchange without waiting for enter to prevent getting value changes without corresponding 
EGET_SPINBOX_CHANGED events.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2411 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-07 01:02:42 +00:00
cutealien 17f879c7b0 Oops, EMBSM_EXTRA1 and EMBSM_EXTRA2 not supported on linux, so removed from device and added comment.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2409 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-02 16:09:14 +00:00
cutealien 2bc2c33188 reset selected row when clearing CGUITable
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2407 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-02 02:29:58 +00:00
cutealien 71ac2ee2f6 - serialize modal screens
- allow stacking modal screens
- allowing hiding modals
- replace many IsVisible checks with virtual isVisible() checks in IGUIElement 


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2406 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-02 00:10:56 +00:00
cutealien 122084c75e - Set "ButtonStates" for mouse events also on Linux (was only for Windows formerly)
- Add Shift+Control states to mouse event


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2405 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-01 06:29:35 +00:00
cutealien 88f41622d4 - bugfix (2796207): menu acted (wrongly) on left-click down instead of left-click up.
Was reported by HackLeX in http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=33371
- Fixed problem with highlighting menus when mouse was outside sub-menu area. Made it work similar to 
firefox menus.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2403 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-06-01 03:50:17 +00:00
cutealien b02776afcc - windows can now enable/disable drawing of background and titlebar
- improved window serialization


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2402 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-05-30 22:39:03 +00:00
cutealien e404e5d63c added IGUIListBox::setDrawBackground
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2401 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-05-30 05:45:54 +00:00
cutealien c4f0e9b558 Make sure setVisible for Windows cursor also works while mousebutton is pressed.
As reported in http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=25880&highlight=


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2400 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-05-24 20:09:02 +00:00
monstrobishi cc4ff80fa3 - Floating point render target support.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2399 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-05-24 09:35:39 +00:00
hybrid 274c52d5e0 Use dummy texture in null driver and software texture only in software driver. Use the dimension function for optimal texture sizes instead of local one.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2397 dfc29bdd-3216-0410-991c-e03cc46cb475
2009-05-17 23:37:02 +00:00