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
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
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
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
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
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
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
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
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
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
fade354bcd
Fix compilation without fbos.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3559 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-14 13:59:07 +00:00
hybrid
5e4d495dcc
Bump copyright dates to 2011.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3556 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-14 13:24:40 +00:00
hybrid
a8be8a8c02
Merge from 1.7 branch, revisions 3515-3533. createImage memleak fixed. TGA loader fixed.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3534 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-01-03 22:38:16 +00:00
hybrid
149d9ec814
Fix OpenGL texture matrix setup, found by pc0de. Sorry for the inconvenience, was probably very late when I changed that code.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3523 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-28 19:12:50 +00:00
hybrid
a204bb3543
Real fix for the MRT problem. Last time only parts of the problem were fixed. Now, all RTT states should be fixed again. Also, test results are commited and work for both drivers.
...
Also changed the FBODepthTexture implementation in that it will not create another FBO, but only the depth/stencil texture or renderbuffer.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3519 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-23 13:49:37 +00:00
hybrid
5acaa94c20
Fix MRT disabling under OpenGL. Thanks to wing64 for noting this error.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3518 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-23 12:00:49 +00:00
hybrid
1ad3c74407
Merge from 1.7 branch, revisions 3449-3513. createImage fixed. Many GUI fixes. Saved particles can be loaded again. Volume light, skydome and water scene node updates. Let hw mapping hint be loaded. D3D reset fix, now terrain scenes can resize screens again.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3514 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-19 19:39:20 +00:00
hybrid
6b18375616
Fix bug which showed up when RTT and text were used in the same scene. I have removed the old RTT checks in 2d methods, and placed a global fix for the texture matrix into the 2d mode setting.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3500 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-11 16:52:12 +00:00
hybrid
0fc4c3e777
Avoid setting texture settings when no texture is active
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3496 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-11 00:01:52 +00:00
hybrid
195c746018
Add driver attribute element for AntiAliasing level. This allows to check whether the driver has AA enabled, and which level.
...
Fix AA setup for OpenGL under windows, where the extension was missing and no error came up due to unsupported feature request. Now, the driver recognizes the missing support and properly sets AA to 0.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3491 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-07 17:58:11 +00:00
hybrid
884ede4efd
Fix transformation matrices for OpenGL rendering after setRenderTarget.
...
Fix draw2DImage into RTT in BurningsVideo
Let ViewPorts unchanged if illegal viewport was given.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3490 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-07 16:21:43 +00:00
hybrid
d1a4b28847
Avoid duplicated render state resets in 2d mode under OpenGL
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3486 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-06 13:54:10 +00:00
hybrid
fbde0c7fc8
Fix mrt disabling, also avoid duplicated enabling for all rtts. Both affects only OpenGL
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3485 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-12-06 13:53:00 +00:00
cutealien
c9694ad3c5
Fix compile errors.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3446 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-22 14:21:50 +00:00
hybrid
031838cbb8
Fix blend state propagation for MRTs to OpenGL.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3445 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-11-22 12:36:30 +00:00
hybrid
fc8bf66fbc
Fix driver attribute setting in all other drivers.
...
Fix wrong destruction calls, due to missing drop ion the attribute. Was a cyclic dependency on the video driver.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3413 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-14 09:22:33 +00:00
hybrid
d6eb580f95
Add a generic attribute interface for querying video driver attributes which are not necessarily of type bool. This interface allows to check certain supported features, such as the number of user clip planes, supported lights and textures, MRTs, and other things. The interface might change in the future, but it's fully functional already. The supported attributes are listed in the API docs of the function.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3408 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-12 11:19:42 +00:00
hybrid
c4d88dbd54
Minor changes for the gl shadow rendering.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3407 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-12 11:10:00 +00:00
hybrid
e08e256fdc
Fix docs for collision manager API, wrong return value was given.
...
Change default blend mode in OpenGL to SRC_ALPHA,ONE_MINUS_SRC_ALPHA
Use less precision in 2dmaterial test.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3399 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-07 15:03:27 +00:00
hybrid
7e236b0192
Merged from trunk, revisions 3366-3387. A few bug fixes all over the place.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3388 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-09-05 19:33:06 +00:00
engineer_apple
976b62fc23
Burningvideo - add Stencil Shadow Rendering (one color only and 32 bit only), pushed Burningvideo to 0.47
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3337 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-07-08 06:57:50 +00:00
hybrid
a5046f4b29
Merged from branch 1.7, revisions 3290-3299. Few bugfixes, typo in GUI event, unicode fixes.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3300 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-06-01 22:03:10 +00:00
hybrid
8de33dd4a6
Merged from 1.7 branch, revisions 3270:3288. Several bug fixes in string class, GUI, mesh loaders. Docs and project file updates.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3289 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-05-08 10:38:50 +00:00
hybrid
b6d83d97c1
Fix 64bit precision problem due to pointer/uint casts.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3275 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-04-17 22:10:42 +00:00
hybrid
d5deb716ef
Add a new material flag which can disable mipmap usage completely via a boolean switch.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3273 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-04-05 16:03:17 +00:00
hybrid
99a25cfbc9
Remove debug output, add ifdefs for OpenGL versions not supporting ARB_occlusion_query. Add support for NV_occlusion query.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3266 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-04-01 16:18:42 +00:00
hybrid
ccd1a241c3
Occlusion Query support.
...
I've finally took on Nadro's code from the forum and adapted it to overcome some restrictions of the original code. Moreover, there are some additional tweaks to make it simpler to use. A few minor things might still change in the future, but for now it looks like a proper implementation with many useful use cases. I'll come back on this in the next time when I provide an example for efficient usage of occlusion queries.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3265 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-04-01 15:40:10 +00:00
hybrid
f0b8a7e9e1
Add support for vertex_array_bgra extension in OpenGL driver. This will speed up OpenGL rendering quite a lot as it skips the silly color conversion thing we have to do otherwise. Still a little clumsy implementation, but the speed gain is worth this.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3258 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-03-26 16:53:50 +00:00
hybrid
9d1cc03094
windows32 class unregister fixes by namtabmai
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3244 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-03-11 22:17:24 +00:00
hybrid
c981decf86
Some cleanup in stencil setup.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3213 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-02-09 21:01:56 +00:00
hybrid
675fd7637e
Merge revisions 3139:3171 from 1.7 branch. Many new tests and bug fixes.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3172 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-01-23 16:53:15 +00:00
hybrid
0ca3ba3744
Merged revisions 3089-3138 from 1.7 branch. Full merge, all changes from 1.7 beta phase up to now are included.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3139 dfc29bdd-3216-0410-991c-e03cc46cb475
2010-01-08 11:46:38 +00:00