# ShaderContext

from pandac.PandaModules import ShaderContext

Class : ShaderContext
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.

## Inheritance:

ShaderContext: SavedContext
SavedContext: TypedObject
TypedObject: MemoryBase
MemoryBase:

## Methods of ShaderContext:

getClassType
getExpansion

## Methods of SavedContext:

getClassType

## Methods of TypedObject:

getClassType
getType
getTypeIndex
isExactType
isOfType

getClassType static TypeHandle ShaderContext::get_class_type(void); Undocumented function.

getExpansion ShaderExpansion *ShaderContext::get_expansion(void) const; Description:

getClassType static TypeHandle SavedContext::get_class_type(void); Undocumented function.

getClassType static TypeHandle TypedObject::get_class_type(void); Undocumented function.

getType virtual TypeHandle TypedObject::get_type(void) const = 0; Derived classes should override this function to return get_class_type().

getTypeIndex int TypedObject::get_type_index(void) const; Description: Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. This is equivalent to get_type().get_index().

isExactType bool TypedObject::is_exact_type(TypeHandle handle) const; Description: Returns true if the current object is the indicated type exactly.

isOfType bool TypedObject::is_of_type(TypeHandle handle) const; Description: Returns true if the current object is or derives from the indicated type.