CPPGPGPU Library - Reference (Doxygen)

Main Page | General Use | Reference | Examples Info | Get/Download CPPGPGPU | SF.net Page

ShaderNode Class Reference

High Level Shader Node. More...

#include <BasicNodes.h>

Inheritance diagram for ShaderNode:

NodeObject

List of all members.

Public Member Functions

 ShaderNode (const string &sName)
 CLASS_RTTI (ShaderNode, NodeObject)
virtual void Render ()
 Render object.
virtual void Update (const float fDtime)
 Update object.
bool SetShader (const string &sShaderName)
void SetUniformIs (vector< string > &vsnNames)
void SetUniformFs (vector< string > &vsnNames, vector< float > &ivsnFs)

Static Public Member Functions

static void SetGlobalCheckTime (float fTime)

Public Attributes

Shader S

Private Attributes

float m_fTimeSinceLastCheck
vector< stringvsnIs
vector< stringvsnFs
vector< float > vfnFs
string m_sShaderName

Static Private Attributes

static float m_fTimePerCheck = 1.0f


Detailed Description

High Level Shader Node.

Definition at line 7 of file BasicNodes.h.


Constructor & Destructor Documentation

ShaderNode::ShaderNode ( const string sName  )  [inline]

Definition at line 10 of file BasicNodes.h.


Member Function Documentation

ShaderNode::CLASS_RTTI ( ShaderNode  ,
NodeObject   
)

void ShaderNode::Render (  )  [virtual]

Render object.

Reimplemented from NodeObject.

Definition at line 8 of file BasicNodes.cpp.

void ShaderNode::Update ( const float  fDtime  )  [virtual]

Update object.

Reimplemented from NodeObject.

Definition at line 19 of file BasicNodes.cpp.

bool ShaderNode::SetShader ( const string sShaderName  )  [inline]

Definition at line 16 of file BasicNodes.h.

void ShaderNode::SetUniformIs ( vector< string > &  vsnNames  )  [inline]

Definition at line 17 of file BasicNodes.h.

void ShaderNode::SetUniformFs ( vector< string > &  vsnNames,
vector< float > &  ivsnFs 
) [inline]

Definition at line 18 of file BasicNodes.h.

static void ShaderNode::SetGlobalCheckTime ( float  fTime  )  [inline, static]

Definition at line 20 of file BasicNodes.h.


Member Data Documentation

Shader ShaderNode::S

Definition at line 22 of file BasicNodes.h.

float ShaderNode::m_fTimeSinceLastCheck [private]

Definition at line 24 of file BasicNodes.h.

float ShaderNode::m_fTimePerCheck = 1.0f [static, private]

Definition at line 25 of file BasicNodes.h.

vector< string > ShaderNode::vsnIs [private]

Definition at line 26 of file BasicNodes.h.

vector< string > ShaderNode::vsnFs [private]

Definition at line 27 of file BasicNodes.h.

vector< float > ShaderNode::vfnFs [private]

Definition at line 28 of file BasicNodes.h.

string ShaderNode::m_sShaderName [private]

Definition at line 29 of file BasicNodes.h.


The documentation for this class was generated from the following files:
© 2005-2007 Charles Lohr, Joshua Allen, David Chapman, Andrew Lohr. All material including documentation under the MIT/X11 license.