 |
|
 |
 |
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CMeshBlender Class ReferenceA tool class used for Alpha Blending of Meshes.
More...
#include <mesh_blender.h>
List of all members.
Public Methods |
| | CMeshBlender () |
| | Constructor. More...
|
| void | prepareRenderForGlobalAlpha (CMaterial &material, IDriver *drv, float globalAlpha, uint8 globalAlphaInt, bool gaDisableZWrite) |
| | Modify the material and the driver for Global Alpha Use. More...
|
| void | restoreRender (CMaterial &material, IDriver *drv, bool gaDisableZWrite) |
| | Restore the material and driver in their initial state. More...
|
| void | prepareRenderForGlobalAlphaCoarseMesh (CMaterial &material, IDriver *drv, NLMISC::CRGBA color, float globalAlpha, bool gaDisableZWrite) |
| | Same method, but special for CoarseMesh (used by CMeshMultiLod::renderMeshGeom). More...
|
| void | restoreRenderCoarseMesh (CMaterial &material, IDriver *drv, bool gaDisableZWrite) |
| | Same method, but special for CoarseMesh (used by CMeshMultiLod::renderMeshGeom). More...
|
Private Attributes |
| uint8 | _BkOpacity |
| bool | _BkZWrite |
| bool | _BkBlend |
| CMaterial::TBlend | _BkSrcBlend |
| CMaterial::TBlend | _BkDstBlend |
| float | _BkAlphaTestThreshold |
| NLMISC::CRGBA | _BkupColor |
Detailed Description
A tool class used for Alpha Blending of Meshes.
Actually, it takes a material, modify it and modify driver so it will be correctly rendered. The backup method must be used after render, to restore the material. -
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2002
Definition at line 48 of file mesh_blender.h.
Constructor & Destructor Documentation
| NL3D::CMeshBlender::CMeshBlender |
( |
|
) |
[inline] |
|
Member Function Documentation
| void NL3D::CMeshBlender::prepareRenderForGlobalAlpha |
( |
CMaterial & |
material, |
|
|
IDriver * |
drv, |
|
|
float |
globalAlpha, |
|
|
uint8 |
globalAlphaInt, |
|
|
bool |
gaDisableZWrite |
|
) |
|
|
| void NL3D::CMeshBlender::prepareRenderForGlobalAlphaCoarseMesh |
( |
CMaterial & |
material, |
|
|
IDriver * |
drv, |
|
|
NLMISC::CRGBA |
color, |
|
|
float |
globalAlpha, |
|
|
bool |
gaDisableZWrite |
|
) |
|
|
| void NL3D::CMeshBlender::restoreRender |
( |
CMaterial & |
material, |
|
|
IDriver * |
drv, |
|
|
bool |
gaDisableZWrite |
|
) |
|
|
| void NL3D::CMeshBlender::restoreRenderCoarseMesh |
( |
CMaterial & |
material, |
|
|
IDriver * |
drv, |
|
|
bool |
gaDisableZWrite |
|
) |
|
|
Member Data Documentation
float NL3D::CMeshBlender::_BkAlphaTestThreshold [private]
|
|
bool NL3D::CMeshBlender::_BkBlend [private]
|
|
uint8 NL3D::CMeshBlender::_BkOpacity [private]
|
|
bool NL3D::CMeshBlender::_BkZWrite [private]
|
|
The documentation for this class was generated from the following files:
|
 |