Commit Graph

1619 Commits (2f8b537d25bcf2038dc15ff94e3f007a0fa305b6)

Author SHA1 Message Date
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
hybrid e5a7ecb684 Fix syntax error in Linux extension code.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3658 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-23 11:03:59 +00:00
hybrid 1f5b75b0a5 Remove _IRR_DEBUG_BREAK_IF in checkFBOStatus to properly proceed without an RTT even in debug mode.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3657 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-22 13:18:11 +00:00
hybrid ad3f87b9a9 Remove WIP code. Went through because the other repository also has the declaration of this filed in other files...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3656 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-22 10:08:51 +00:00
hybrid c512692ad0 Fix initialisation of blend equation pointers
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3654 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-21 17:21:36 +00:00
hybrid 8704030071 Add missing include file in project
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3653 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-21 13:20:10 +00:00
hybrid 9499db5637 Add support for blend operation field.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3652 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-21 13:08:48 +00:00
hybrid c895c0e150 Add implementations for polygon offset in hw drivers.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3651 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-21 11:54:14 +00:00
hybrid 3eb6688f8c Move SMF loader into proper filter group
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3649 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-21 11:51:52 +00:00
hybrid c32eb9fcfe Fix redundant expression and make one variable const.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3648 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-21 11:51:21 +00:00
hybrid ce755201e0 Fix empty line count.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3647 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-21 11:50:38 +00:00
hybrid b3552d3cb5 Remove stray whitespace
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3646 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-21 11:48:05 +00:00
cutealien 20b9be8f4b Reduce "Could not load sprite bank" error to ELL_DEBUG (not an error, loading isn't implemented anyway and it's wrong for #Defaultfont).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3644 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-19 11:01:50 +00:00
hybrid 99dbf71a68 According to MSDN, setting the ALPHAOP to disable while COLOROP is active leads to undefined behavior. So I cleaned up the material settings in d3d9 driver and hope that I got all things fixed again. Also inserted some helper functions to reduce the code in the renderers. Changed the alpha behavior of transparent_reflections_2layer (probably...) to match better with OpenGL and description.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3641 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-14 17:19:33 +00:00
hybrid 4581df2293 Change back previous revision, and order other way round, as that's the OpenGL default
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3640 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-14 17:06:13 +00:00
hybrid 114e92c88d Reorder texture stage assignments
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3639 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-14 15:23:57 +00:00
hybrid 7fdd163034 Combine the vsync setting functions into one common extension function. Also added support for more swap_interval methods on X11 systems.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3638 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-14 13:38:38 +00:00
hybrid 79b3cc2fe6 Move unused variables into out-commented areas.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3637 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-14 11:50:53 +00:00
hybrid ae0b10aa7b Fix signedness problem and avoid wrap around if too many triangles are found.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3636 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-14 11:44:24 +00:00
hybrid 89bafd1256 Fix usage of OpenGL driver with multiple device types compiled in.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3634 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-13 13:49:05 +00:00
hybrid 42c816b675 Avoid invalid array access if not enough texcoord data is provided.
Fix texture loading for materials with more than one texture.
Choose lightmap material if more than one texture is set in a material. Other material types have to be deduced from other things, not sure about this yet.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3633 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-13 12:55:39 +00:00
hybrid 3d14880c0d Fix createMeshCopy to apply the original materials to new copy as well, as pointed out by tonic.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3631 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-04-12 11:49:32 +00:00
hybrid b314794eb5 Make FeatureAvailable array accessible to material renderers
New glext.h extension header and one new extension added.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3629 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-03-30 11:54:39 +00:00
hybrid 9478732cc5 Fix naming scheme for occlusion queries. Since those are not to drop, but are stored in the driver and can be removed by the according removeOcclusionQuery call, the name should be addOcclusionQuery instead of createOcclusionQuery.
Added an example showing a very simple occlusion query setup.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3628 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-03-25 23:32:35 +00:00
hybrid 76794587fd Fix vertex color array when used together with VBOs and the vertex_array_bgra extension. Thanks to Auria for pointing out this issue.
Also fixed two warnings mentioned by him.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3627 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-03-25 15:33:20 +00:00
hybrid edf7c82eb4 Add framework target to OSX project. Thanks to Auria for providing this patch
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3626 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-03-25 15:07:20 +00:00
hybrid 4d7f18cdee Fix extension check changes also in drawVertexPrimitiveList
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3625 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-03-25 14:35:13 +00:00
hybrid ae6c49d287 Fix problem with new vertex_array_bgra extension on OSX. Thanks to Auria for online debugging this issue.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3624 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-03-25 14:11:09 +00:00
hybrid 6990bb1d82 Change bbox calculation, avoiding too large bboxes.
Clean up patch creation phase.
Change height map interpretation to lightness instead of luminance. It's faster and more natural for height maps.
Reordered structures to keep pointers at the top.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3623 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-03-24 00:46:20 +00:00
hybrid c84fd53f13 Fix HSL color class and conversions from/to RGB classes.
Fix Color selection dialog. It's now fully usable and gives correct results. The color display ring could be reworked.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3616 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-03-20 21:44:28 +00:00