Panda3D
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ShaderContext Class Reference

The ShaderContext is meant to contain the compiled version of a shader string. More...

#include "shaderContext.h"

Inheritance diagram for ShaderContext:
SavedContext TypedObject MemoryBase DXShaderContext9

Public Member Functions

 ShaderContext (Shader *se)
 
virtual void bind ()
 
virtual void disable_shader_texture_bindings ()
 
virtual void disable_shader_vertex_arrays ()
 
virtual TypeHandle force_init_type ()
 
Shaderget_shader () const
 
virtual TypeHandle get_type () const
 
virtual void issue_parameters (int altered)
 
virtual void set_state_and_transform (const RenderState *, const TransformState *, const TransformState *, const TransformState *)
 
virtual void unbind ()
 
virtual void update_shader_buffer_bindings (ShaderContext *prev)
 
virtual void update_shader_texture_bindings (ShaderContext *prev)
 
virtual bool update_shader_vertex_arrays (ShaderContext *prev, bool force)
 
virtual bool uses_custom_vertex_arrays (void)
 
virtual bool uses_standard_vertex_arrays (void)
 
virtual bool valid ()
 
- Public Member Functions inherited from SavedContext
virtual void output (std::ostream &out) const
 
virtual void write (std::ostream &out, int indent_level) const
 
- Public Member Functions inherited from TypedObject
 TypedObject (const TypedObject &copy)=default
 
TypedObjectas_typed_object ()
 Returns the object, upcast (if necessary) to a TypedObject pointer. More...
 
const TypedObjectas_typed_object () const
 Returns the object, upcast (if necessary) to a TypedObject pointer. More...
 
int get_best_parent_from_Set (const std::set< int > &) const
 
int get_type_index () const
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More...
 
bool is_exact_type (TypeHandle handle) const
 Returns true if the current object is the indicated type exactly. More...
 
bool is_of_type (TypeHandle handle) const
 Returns true if the current object is or derives from the indicated type. More...
 
TypedObjectoperator= (const TypedObject &copy)=default
 

Static Public Member Functions

static TypeHandle get_class_type ()
 
static void init_type ()
 
- Static Public Member Functions inherited from SavedContext
static TypeHandle get_class_type ()
 
static void init_type ()
 
- Static Public Member Functions inherited from TypedObject
static TypeHandle get_class_type ()
 
static void init_type ()
 This function is declared non-inline to work around a compiler bug in g++ 2.96. More...
 

Public Attributes

Shader_shader
 
 get_shader
 
- Public Attributes inherited from TypedObject
 get_type
 

Detailed Description

The ShaderContext is meant to contain the compiled version of a shader string.

ShaderContext is an abstract base class, there will be a subclass of it for each shader language and graphics API. Since the languages are so different and the graphics APIs have so little in common, the base class contains almost nothing. All the implementation details are in the subclasses.

Definition at line 31 of file shaderContext.h.


The documentation for this class was generated from the following files: