OMK::Vis::IsProgrammable Class Reference

Action to know if is programmable. More...

#include <OMKEntityMaterialAction.h>

Inheritance diagram for OMK::Vis::IsProgrammable:

Inheritance graph
[legend]
Collaboration diagram for OMK::Vis::IsProgrammable:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

Action to know if is programmable.

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.


Constructor & Destructor Documentation

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]

Destructor.

Definition at line 136 of file OMKEntityMaterialAction.h.

00136 {}


Member Function Documentation

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 }


Member Data Documentation

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().


logo OpenMask

Documentation generated on Mon Jun 9 11:46:05 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007