# 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::CPSColorGradient Class Reference

This is a color gradient class. More...

#include <ps_color.h>

Inheritance diagram for NL3D::CPSColorGradient:

NL3D::CPSValueGradient< NLMISC::CRGBA > NL3D::CPSAttribMakerT< NLMISC::CRGBA, CPSValueGradientFunc< NLMISC::CRGBA > > NL3D::CPSAttribMaker< NLMISC::CRGBA > NL3D::CPSAttribMakerBase NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Methods

 NLMISC_DECLARE_CLASS (CPSColorGradient)
 CPSColorGradient (const NLMISC::CRGBA *colorTab=CPSColorGradient::_DefaultGradient, uint32 nbValues=2, uint32 nbStages=64, float nbCycles=1.0f)
 ======================================================================================. More...

CPSAttribMakerBaseclone () const

Static Public Attributes

NLMISC::CRGBA _DefaultGradient [] = { CRGBA(0, 0, 0), CRGBA(255, 255, 255) }

Detailed Description

This is a color gradient class.

Definition at line 87 of file ps_color.h.


Constructor & Destructor Documentation

NL3D::CPSColorGradient::CPSColorGradient const NLMISC::CRGBA   colorTab = CPSColorGradient::_DefaultGradient,
uint32    nbValues = 2,
uint32    nbStages = 64,
float    nbCycles = 1.0f
 

======================================================================================.

Parameters:
nbStages  The result is sampled into a table by linearly interpolating values. This give the number of step between each value
nbCycles  : The nb of time the pattern is repeated during particle life. see ps_attrib_maker.h

Definition at line 40 of file ps_color.cpp.

References NL3D::CPSAttribMakerT< NLMISC::CRGBA, CPSValueGradientFunc< NLMISC::CRGBA > >::_F.

Referenced by clone.


Member Function Documentation

CPSAttribMakerBase* NL3D::CPSColorGradient::clone void    const [inline, virtual]
 

Implements NL3D::CPSAttribMakerBase.

Definition at line 101 of file ps_color.h.

References CPSColorGradient.

NL3D::CPSColorGradient::NLMISC_DECLARE_CLASS CPSColorGradient   
 


Member Data Documentation

CRGBA NL3D::CPSColorGradient::_DefaultGradient = { CRGBA(0, 0, 0), CRGBA(255, 255, 255) } [static]
 

Definition at line 36 of file ps_color.cpp.


The documentation for this class was generated from the following files: