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/class_NL3D__CMaterialBase.html | 620 ++++++++++++++++++++++++ 1 file changed, 620 insertions(+) create mode 100644 docs/doxygen/nel/class_NL3D__CMaterialBase.html (limited to 'docs/doxygen/nel/class_NL3D__CMaterialBase.html') diff --git a/docs/doxygen/nel/class_NL3D__CMaterialBase.html b/docs/doxygen/nel/class_NL3D__CMaterialBase.html new file mode 100644 index 00000000..ef0a772a --- /dev/null +++ b/docs/doxygen/nel/class_NL3D__CMaterialBase.html @@ -0,0 +1,620 @@ + + + + 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::CMaterialBase Class Reference

An material Reference for Animated reference. +More... +

+#include <animated_material.h> +

+Inheritance diagram for NL3D::CMaterialBase

Inheritance graph
+ + + +
[legend]
Collaboration diagram for NL3D::CMaterialBase:

Collaboration graph
+ + + + + + +
[legend]
List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

 CMaterialBase ()
void copyFromMaterial (CMaterial *pMat)
 setup the default tracks from a material This method: copy the material contents into the Defaults tracks values. More...

void serial (NLMISC::IStream &f)
 save/load. More...

void setAnimatedTexture (uint32 id, CSmartPtr<ITexture> pText)
 assign a specific texture for an id (a uint32). It is a valid to give a NULL ptr (=> un textured). Sotred as a SmartPtr. More...

bool validAnimatedTexture (uint32 id)
 is this Id valid? More...

ITexturegetAnimatedTexture (uint32 id)
 return the texture for this Id. return NULL either if NULL texture for this id or if(!validAnimatedTexture()). More...


Public Attributes

std::string Name
CTrackDefaultRGBA DefaultAmbient
CTrackDefaultRGBA DefaultDiffuse
CTrackDefaultRGBA DefaultSpecular
CTrackDefaultFloat DefaultShininess
CTrackDefaultRGBA DefaultEmissive
CTrackDefaultFloat DefaultOpacity
CTrackDefaultInt DefaultTexture

Private Types

typedef std::map<uint32, CAnimatedTextureTAnimatedTextureMap

Private Attributes

TAnimatedTextureMap _AnimatedTextures
+

Detailed Description

+An material Reference for Animated reference. +

+This object is stored in the mesh, and is serialised. NB: formated for 3ds Max :). Emissive anim is a float, with a constant RGB factor.

+Author(s):
+ Cyril 'Hulud' Corvazier , Nevrax France
+Date:
+ 2001
+

+ +

+Definition at line 51 of file animated_material.h.


Member Typedef Documentation

+

+ + + + +
+ + + + + +
+typedef std::map<uint32, CAnimatedTexture> NL3D::CMaterialBase::TAnimatedTextureMap [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 113 of file animated_material.h.

+


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + +
+NL3D::CMaterialBase::CMaterialBase ( + +) +
+
+ + + + + +
+   + + +

+ +

+Definition at line 61 of file animated_material.cpp.

+


Member Function Documentation

+

+ + + + +
+ + + + + + +
+void NL3D::CMaterialBase::copyFromMaterial ( + +CMaterial * pMat ) +
+
+ + + + + +
+   + + +

+setup the default tracks from a material This method: copy the material contents into the Defaults tracks values. +

+

    +
  • NB: for emissive part, emissive defaut track value is set to 1, and emissive factor is set to the RGB emissive value stored into pMat.
+ +

+Definition at line 87 of file animated_material.cpp.

+

+ + + + +
+ + + + + + +
+ITexture * NL3D::CMaterialBase::getAnimatedTexture ( + +uint32 id ) +
+
+ + + + + +
+   + + +

+return the texture for this Id. return NULL either if NULL texture for this id or if(!validAnimatedTexture()). +

+ +

+Definition at line 112 of file animated_material.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CMaterialBase::serial ( + +NLMISC::IStream & f ) +
+
+ + + + + +
+   + + +

+save/load. +

+ +

+Definition at line 74 of file animated_material.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CMaterialBase::setAnimatedTexture ( + +uint32 id, +
+CSmartPtr< ITexture > pText ) +
+
+ + + + + +
+   + + +

+assign a specific texture for an id (a uint32). It is a valid to give a NULL ptr (=> un textured). Sotred as a SmartPtr. +

+This is the place where you define your list of texture. This list of animated texture is serialised. AnimatedMaterial animate texture with sint32 Tracks. If the id is not found in CMaterialBase, then the CMaterial texture is left as before. +

+NB: id 0x7FFFFFFF is a reserved id, used as default to indicate no valid Animated texture. +

+Definition at line 99 of file animated_material.cpp.

+

+ + + + +
+ + + + + + +
+bool NL3D::CMaterialBase::validAnimatedTexture ( + +uint32 id ) +
+
+ + + + + +
+   + + +

+is this Id valid? +

+ +

+Definition at line 105 of file animated_material.cpp.

+


Member Data Documentation

+

+ + + + +
+ + + + + +
+CTrackDefaultRGBA NL3D::CMaterialBase::DefaultAmbient +
+
+ + + + + +
+   + + +

+ +

+Definition at line 72 of file animated_material.h.

+

+ + + + +
+ + + + + +
+CTrackDefaultRGBA NL3D::CMaterialBase::DefaultDiffuse +
+
+ + + + + +
+   + + +

+ +

+Definition at line 73 of file animated_material.h.

+

+ + + + +
+ + + + + +
+CTrackDefaultRGBA NL3D::CMaterialBase::DefaultEmissive +
+
+ + + + + +
+   + + +

+ +

+Definition at line 76 of file animated_material.h.

+

+ + + + +
+ + + + + +
+CTrackDefaultFloat NL3D::CMaterialBase::DefaultOpacity +
+
+ + + + + +
+   + + +

+ +

+Definition at line 77 of file animated_material.h.

+

+ + + + +
+ + + + + +
+CTrackDefaultFloat NL3D::CMaterialBase::DefaultShininess +
+
+ + + + + +
+   + + +

+ +

+Definition at line 75 of file animated_material.h.

+

+ + + + +
+ + + + + +
+CTrackDefaultRGBA NL3D::CMaterialBase::DefaultSpecular +
+
+ + + + + +
+   + + +

+ +

+Definition at line 74 of file animated_material.h.

+

+ + + + +
+ + + + + +
+CTrackDefaultInt NL3D::CMaterialBase::DefaultTexture +
+
+ + + + + +
+   + + +

+ +

+Definition at line 78 of file animated_material.h.

+

+ + + + +
+ + + + + +
+std::string NL3D::CMaterialBase::Name +
+
+ + + + + +
+   + + +

+ +

+Definition at line 68 of file animated_material.h.

+

+ + + + +
+ + + + + +
+TAnimatedTextureMap NL3D::CMaterialBase::_AnimatedTextures [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 114 of file animated_material.h.

+


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