Panda3D
Public Types | Public Member Functions | Static Public Member Functions

ShaderInput Class Reference

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"

Inheritance diagram for ShaderInput:
TypedWritableReferenceCount TypedWritable ReferenceCount TypedObject MemoryBase MemoryBase

List of all members.

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 ()
InternalNameget_name () const
const NodePathget_nodepath () const
int get_priority () const
Textureget_texture () const
virtual TypeHandle get_type () const
int get_value_type () const
const LVector4fget_vector () const

Static Public Member Functions

static const ShaderInputget_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 ()

Detailed Description

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.


Member Function Documentation

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


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations