Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/shader/shaderTransition.I File Reference

#include <algorithm>

Go to the source code of this file.

Functions

bool set_shader (NodeRelation *arc, Shader *shader)
 An external function, handy for setting shaders directly onto arcs.

bool clear_shader (NodeRelation *arc, Shader *shader)
 An external function, handy for setting shaders directly onto arcs.

bool has_shader (const NodeRelation *arc, Shader *shader)
 An external function, handy for setting shaders directly onto arcs.


Detailed Description

Definition in file shaderTransition.I.


Function Documentation

bool clear_shader NodeRelation *  arc,
Shader shader
[inline]
 

An external function, handy for setting shaders directly onto arcs.

This will remove the indicated shader from the existing ShaderTransition, if there is one.

Definition at line 75 of file shaderTransition.I.

References ShaderTransition::has_shader().

Referenced by event_d(), event_e(), event_h(), event_m(), event_o(), event_p(), event_r(), and event_s().

bool has_shader const NodeRelation *  arc,
Shader shader
[inline]
 

An external function, handy for setting shaders directly onto arcs.

This returns true if there exists a ShaderTransition and it contains the indicated shader, false otherwise.

Definition at line 97 of file shaderTransition.I.

bool set_shader NodeRelation *  arc,
Shader shader
[inline]
 

An external function, handy for setting shaders directly onto arcs.

This will add the indicated shader to an existing ShaderTransition, or create a new ShaderTransition if necessary.

Definition at line 49 of file shaderTransition.I.

References ShaderTransition::clear_shader(), and INLINE.

Referenced by event_d(), event_e(), and event_r().


Generated on Fri May 2 00:46:14 2003 for Panda by doxygen1.3