#include <OMKEntityMaterialAction.h>
Inheritance diagram for OMK::Vis::IsProgrammable:
Public Member Functions | |
IsProgrammable () | |
The contructor. The result is false by default. | |
virtual | ~IsProgrammable () |
Destructor. | |
operator bool () | |
Operator to retrieve the result. | |
Private Member Functions | |
virtual void | subEntityAction (SubEntityMaterial *subEntity) const |
The action calls the appropriate function to update the result. | |
Private Attributes | |
bool | _isProgrammable |
The result. It is update by the action process. |
Main pass is programmable ? ie includes either a vertex or fragment program.
IsProgrammable isProgrammable ; _nmi->doAction( isProgrammable ) ; if( isProgrammable ) ...
Definition at line 130 of file OMKEntityMaterialAction.h.
OMK::Vis::IsProgrammable::IsProgrammable | ( | ) | [inline] |
The contructor. The result is false by default.
Definition at line 134 of file OMKEntityMaterialAction.h.
00134 : _isProgrammable( false ) {}
virtual OMK::Vis::IsProgrammable::~IsProgrammable | ( | ) | [inline, virtual] |
OMK::Vis::IsProgrammable::operator bool | ( | ) | [inline] |
Operator to retrieve the result.
Definition at line 138 of file OMKEntityMaterialAction.h.
00138 { return _isProgrammable ; }
void IsProgrammable::subEntityAction | ( | SubEntityMaterial * | subEntity | ) | const [private, virtual] |
The action calls the appropriate function to update the result.
Reimplemented from OMK::Vis::IMaterialAction.
Definition at line 114 of file OMKEntityMaterialAction.cpp.
References _isProgrammable, and OMK::Vis::IMaterialAction::getFirstPassOfFirstTechnique().
00115 { 00116 if( !_isProgrammable ) 00117 { 00118 _isProgrammable = getFirstPassOfFirstTechnique( subEntity )->isProgrammable() ; 00119 } 00120 }
bool OMK::Vis::IsProgrammable::_isProgrammable [mutable, private] |
The result. It is update by the action process.
Definition at line 141 of file OMKEntityMaterialAction.h.
Referenced by subEntityAction().
Documentation generated on Mon Jun 9 11:46:05 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |