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 Member Functions | |
ShaderInput (CPT_InternalName name, const LMatrix3d &mat, int priority=0) | |
ShaderInput (CPT_InternalName name, const LMatrix3f &mat, int priority=0) | |
ShaderInput (CPT_InternalName name, const LMatrix4d &mat, int priority=0) | |
ShaderInput (CPT_InternalName name, const LMatrix4f &mat, int priority=0) | |
ShaderInput (CPT_InternalName name, const LVecBase2d &vec, int priority=0) | |
ShaderInput (CPT_InternalName name, const LVecBase2f &vec, int priority=0) | |
ShaderInput (CPT_InternalName name, const LVecBase2i &vec, int priority=0) | |
ShaderInput (CPT_InternalName name, const LVecBase3d &vec, int priority=0) | |
ShaderInput (CPT_InternalName name, const LVecBase3f &vec, int priority=0) | |
ShaderInput (CPT_InternalName name, const LVecBase3i &vec, int priority=0) | |
ShaderInput (CPT_InternalName name, const LVecBase4d &vec, int priority=0) | |
ShaderInput (CPT_InternalName name, const LVecBase4f &vec, int priority=0) | |
ShaderInput (CPT_InternalName name, const LVecBase4i &vec, int priority=0) | |
ShaderInput (CPT_InternalName name, const NodePath &np, int priority=0) | |
ShaderInput (CPT_InternalName name, const PTA_double &ptr, int priority=0) | |
ShaderInput (CPT_InternalName name, const PTA_float &ptr, int priority=0) | |
ShaderInput (CPT_InternalName name, const PTA_int &ptr, int priority=0) | |
ShaderInput (CPT_InternalName name, const PTA_LMatrix3d &ptr, int priority=0) | |
ShaderInput (CPT_InternalName name, const PTA_LMatrix3f &ptr, int priority=0) | |
ShaderInput (CPT_InternalName name, const PTA_LMatrix4d &ptr, int priority=0) | |
ShaderInput (CPT_InternalName name, const PTA_LMatrix4f &ptr, int priority=0) | |
ShaderInput (CPT_InternalName name, const PTA_LVecBase2d &ptr, int priority=0) | |
ShaderInput (CPT_InternalName name, const PTA_LVecBase2f &ptr, int priority=0) | |
ShaderInput (CPT_InternalName name, const PTA_LVecBase2i &ptr, int priority=0) | |
ShaderInput (CPT_InternalName name, const PTA_LVecBase3d &ptr, int priority=0) | |
ShaderInput (CPT_InternalName name, const PTA_LVecBase3f &ptr, int priority=0) | |
ShaderInput (CPT_InternalName name, const PTA_LVecBase3i &ptr, int priority=0) | |
ShaderInput (CPT_InternalName name, const PTA_LVecBase4d &ptr, int priority=0) | |
ShaderInput (CPT_InternalName name, const PTA_LVecBase4f &ptr, int priority=0) | |
ShaderInput (CPT_InternalName name, const PTA_LVecBase4i &ptr, int priority=0) | |
ShaderInput (CPT_InternalName name, int priority=0) | |
ShaderInput (CPT_InternalName name, ParamValueBase *param, int priority=0) | |
ShaderInput (CPT_InternalName name, ShaderBuffer *buf, int priority=0) | |
ShaderInput (CPT_InternalName name, Texture *tex, bool read, bool write, int z=-1, int n=0, int priority=0) | |
ShaderInput (CPT_InternalName name, Texture *tex, const SamplerState &sampler, int priority=0) | |
ShaderInput (CPT_InternalName name, Texture *tex, int priority=0) | |
size_t | add_hash (size_t hash) const |
const InternalName * | get_name () const |
const NodePath & | get_nodepath () const |
Warning: no error checking is done. | |
ParamValueBase * | get_param () const |
int | get_priority () const |
const Shader::ShaderPtrData & | get_ptr () const |
const SamplerState & | get_sampler () const |
Warning: no error checking is done. | |
Texture * | get_texture () const |
TypedWritableReferenceCount * | get_value () const |
int | get_value_type () const |
const LVecBase4 & | get_vector () const |
operator bool () const | |
bool | operator!= (const ShaderInput &other) const |
bool | operator< (const ShaderInput &other) const |
bool | operator== (const ShaderInput &other) 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 void | register_with_read_factory () |
Friends | |
class | Extension< ShaderInput > |
class | ShaderAttrib |
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 40 of file shaderInput.h.
enum ShaderInput::AccessFlags |
Definition at line 43 of file shaderInput.h.
enum ShaderInput::ShaderInputType |
Definition at line 96 of file shaderInput.h.
|
inlineexplicit |
Definition at line 19 of file shaderInput.I.
|
inline |
Definition at line 30 of file shaderInput.I.
|
inline |
Definition at line 42 of file shaderInput.I.
|
inline |
Definition at line 54 of file shaderInput.I.
|
inline |
Definition at line 66 of file shaderInput.I.
|
inline |
Definition at line 78 of file shaderInput.I.
|
inline |
Definition at line 90 of file shaderInput.I.
|
inline |
Definition at line 102 of file shaderInput.I.
|
inline |
Definition at line 153 of file shaderInput.I.
|
inline |
Definition at line 165 of file shaderInput.I.
|
inline |
Definition at line 114 of file shaderInput.I.
|
inline |
Definition at line 127 of file shaderInput.I.
|
inline |
Definition at line 140 of file shaderInput.I.
|
inline |
Definition at line 177 of file shaderInput.I.
|
inline |
Definition at line 189 of file shaderInput.I.
|
inline |
Definition at line 201 of file shaderInput.I.
|
inline |
Definition at line 213 of file shaderInput.I.
|
inline |
Definition at line 225 of file shaderInput.I.
|
inline |
Definition at line 237 of file shaderInput.I.
|
inline |
Definition at line 288 of file shaderInput.I.
|
inline |
Definition at line 300 of file shaderInput.I.
|
inline |
Definition at line 249 of file shaderInput.I.
|
inline |
Definition at line 262 of file shaderInput.I.
|
inline |
Definition at line 275 of file shaderInput.I.
|
inline |
Definition at line 312 of file shaderInput.I.
|
inline |
Definition at line 324 of file shaderInput.I.
|
inline |
Definition at line 336 of file shaderInput.I.
|
inline |
Definition at line 348 of file shaderInput.I.
|
inline |
Definition at line 360 of file shaderInput.I.
|
inline |
Definition at line 372 of file shaderInput.I.
|
inline |
Definition at line 384 of file shaderInput.I.
|
inline |
Definition at line 397 of file shaderInput.I.
|
inline |
Definition at line 410 of file shaderInput.I.
ShaderInput::ShaderInput | ( | CPT_InternalName | name, |
const NodePath & | np, | ||
int | priority = 0 ) |
Definition at line 31 of file shaderInput.cxx.
|
explicit |
Definition at line 43 of file shaderInput.cxx.
|
explicit |
Definition at line 55 of file shaderInput.cxx.
size_t ShaderInput::add_hash | ( | size_t | hash | ) | const |
Definition at line 67 of file shaderInput.cxx.
|
static |
Returns a static ShaderInput object with name NULL, priority zero, type INVALID, and all value-fields cleared.
Definition at line 22 of file shaderInput.cxx.
|
inline |
Definition at line 518 of file shaderInput.I.
const NodePath & ShaderInput::get_nodepath | ( | ) | const |
Warning: no error checking is done.
This *will* crash if get_value_type() is not M_nodepath.
Definition at line 92 of file shaderInput.cxx.
|
inline |
Definition at line 558 of file shaderInput.I.
|
inline |
Definition at line 534 of file shaderInput.I.
|
inline |
Definition at line 550 of file shaderInput.I.
const SamplerState & ShaderInput::get_sampler | ( | ) | const |
Warning: no error checking is done.
Definition at line 120 of file shaderInput.cxx.
References SamplerState::get_default(), and Texture::get_default_sampler.
Texture * ShaderInput::get_texture | ( | ) | const |
Definition at line 100 of file shaderInput.cxx.
|
inline |
Definition at line 566 of file shaderInput.I.
|
inline |
Definition at line 526 of file shaderInput.I.
|
inline |
Definition at line 542 of file shaderInput.I.
|
inline |
Definition at line 423 of file shaderInput.I.
|
inline |
Definition at line 454 of file shaderInput.I.
|
inline |
Definition at line 477 of file shaderInput.I.
|
inline |
Definition at line 431 of file shaderInput.I.
|
static |
Definition at line 136 of file shaderInput.cxx.
|
friend |
Definition at line 142 of file shaderInput.h.
|
friend |
Definition at line 142 of file shaderInput.h.