Panda3D
|
This is a small container class that can hold any one of the value types that can be passed as input to a shader. More...
#include "shaderInput.h"
Public Types | |
enum | ShaderInputType { M_invalid = 0, M_texture, M_nodepath, M_vector } |
Public Member Functions | |
ShaderInput (InternalName *id, int priority=0) | |
ShaderInput (InternalName *id, const LVector4f &v, int priority=0) | |
ShaderInput (InternalName *id, Texture *tex, int priority=0) | |
ShaderInput (InternalName *id, const NodePath &np, int priority=0) | |
virtual TypeHandle | force_init_type () |
InternalName * | get_name () const |
const NodePath & | get_nodepath () const |
int | get_priority () const |
Texture * | get_texture () const |
virtual TypeHandle | get_type () const |
int | get_value_type () const |
const LVector4f & | get_vector () const |
Static Public Member Functions | |
static const ShaderInput * | get_blank () |
Returns a static ShaderInput object with name NULL, priority zero, type INVALID, and all value-fields cleared. | |
static TypeHandle | get_class_type () |
static void | init_type () |
static void | register_with_read_factory () |
This is a small container class that can hold any one of the value types that can be passed as input to a shader.
Definition at line 32 of file shaderInput.h.
const ShaderInput * ShaderInput::get_blank | ( | ) | [static] |
Returns a static ShaderInput object with name NULL, priority zero, type INVALID, and all value-fields cleared.
Definition at line 27 of file shaderInput.cxx.
Referenced by ShaderAttrib::get_shader_input().