From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/classNL3D_1_1CMeshBlender.html | 554 ++++++++++++++++++++++++ 1 file changed, 554 insertions(+) create mode 100644 docs/doxygen/nel/classNL3D_1_1CMeshBlender.html (limited to 'docs/doxygen/nel/classNL3D_1_1CMeshBlender.html') diff --git a/docs/doxygen/nel/classNL3D_1_1CMeshBlender.html b/docs/doxygen/nel/classNL3D_1_1CMeshBlender.html new file mode 100644 index 00000000..24f532f4 --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CMeshBlender.html @@ -0,0 +1,554 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
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 Reference

A 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]
+
+ + + + + +
+   + + +

+Constructor. +

+ +

+Definition at line 53 of file mesh_blender.h.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void NL3D::CMeshBlender::prepareRenderForGlobalAlpha CMaterial  material,
IDriver  drv,
float   globalAlpha,
uint8   globalAlphaInt,
bool   gaDisableZWrite
+
+ + + + + +
+   + + +

+Modify the material and the driver for Global Alpha Use. +

+ +

+Definition at line 37 of file mesh_blender.cpp. +

+References _BkAlphaTestThreshold, _BkBlend, _BkDstBlend, _BkOpacity, _BkSrcBlend, and _BkZWrite.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void NL3D::CMeshBlender::prepareRenderForGlobalAlphaCoarseMesh CMaterial  material,
IDriver  drv,
NLMISC::CRGBA   color,
float   globalAlpha,
bool   gaDisableZWrite
+
+ + + + + +
+   + + +

+Same method, but special for CoarseMesh (used by CMeshMultiLod::renderMeshGeom). +

+ +

+Definition at line 132 of file mesh_blender.cpp. +

+References _BkDstBlend, _BkSrcBlend, _BkupColor, NLMISC::CRGBA::A, and NL3D::OptFastFloor.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NL3D::CMeshBlender::restoreRender CMaterial  material,
IDriver  drv,
bool   gaDisableZWrite
+
+ + + + + +
+   + + +

+Restore the material and driver in their initial state. +

+ +

+Definition at line 99 of file mesh_blender.cpp. +

+References _BkAlphaTestThreshold, _BkBlend, _BkDstBlend, _BkOpacity, _BkSrcBlend, and _BkZWrite.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NL3D::CMeshBlender::restoreRenderCoarseMesh CMaterial  material,
IDriver  drv,
bool   gaDisableZWrite
+
+ + + + + +
+   + + +

+Same method, but special for CoarseMesh (used by CMeshMultiLod::renderMeshGeom). +

+ +

+Definition at line 181 of file mesh_blender.cpp. +

+References _BkDstBlend, _BkSrcBlend, and _BkupColor.

+


Member Data Documentation

+

+ + + + +
+ + +
float NL3D::CMeshBlender::_BkAlphaTestThreshold [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 73 of file mesh_blender.h. +

+Referenced by prepareRenderForGlobalAlpha, and restoreRender.

+

+ + + + +
+ + +
bool NL3D::CMeshBlender::_BkBlend [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 70 of file mesh_blender.h. +

+Referenced by prepareRenderForGlobalAlpha, and restoreRender.

+

+ + + + +
+ + +
CMaterial::TBlend NL3D::CMeshBlender::_BkDstBlend [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 72 of file mesh_blender.h. +

+Referenced by prepareRenderForGlobalAlpha, prepareRenderForGlobalAlphaCoarseMesh, restoreRender, and restoreRenderCoarseMesh.

+

+ + + + +
+ + +
uint8 NL3D::CMeshBlender::_BkOpacity [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 68 of file mesh_blender.h. +

+Referenced by prepareRenderForGlobalAlpha, and restoreRender.

+

+ + + + +
+ + +
CMaterial::TBlend NL3D::CMeshBlender::_BkSrcBlend [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 71 of file mesh_blender.h. +

+Referenced by prepareRenderForGlobalAlpha, prepareRenderForGlobalAlphaCoarseMesh, restoreRender, and restoreRenderCoarseMesh.

+

+ + + + +
+ + +
NLMISC::CRGBA NL3D::CMeshBlender::_BkupColor [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 74 of file mesh_blender.h. +

+Referenced by prepareRenderForGlobalAlphaCoarseMesh, and restoreRenderCoarseMesh.

+

+ + + + +
+ + +
bool NL3D::CMeshBlender::_BkZWrite [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 69 of file mesh_blender.h. +

+Referenced by prepareRenderForGlobalAlpha, and restoreRender.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1