Inheritance diagram for osg::FragmentProgram:
Public Types | |
typedef std::map< GLuint, Vec4 > | LocalParamList |
Public Member Functions | |
FragmentProgram () | |
FragmentProgram (const FragmentProgram &vp, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
META_StateAttribute (osg, FragmentProgram, FRAGMENTPROGRAM) | |
virtual int | compare (const osg::StateAttribute &sa) const |
virtual bool | getModeUsage (ModeUsage &usage) const |
GLuint & | getFragmentProgramID (unsigned int contextID) const |
void | setFragmentProgram (const std::string &program) |
void | setFragmentProgram (const char *program) |
const std::string & | getFragmentProgram () const |
void | setProgramLocalParameter (const GLuint index, const Vec4 &p) |
LocalParamList & | getLocalParamList () |
const LocalParamList & | getLocalParamList () const |
void | setMatrix (const GLenum mode, const Matrix &matrix) |
void | dirtyFragmentProgramObject () |
virtual void | apply (State &state) const |
virtual void | compileGLObjects (State &state) const |
virtual void | releaseGLObjects (State *state=0) const |
Static Public Member Functions | |
static void | deleteFragmentProgramObject (unsigned int contextID, GLuint handle) |
static void | flushDeletedFragmentProgramObjects (unsigned int contextID, double currentTime, double &availableTime) |
static Extensions * | getExtensions (unsigned int contextID, bool createIfNotInitalized) |
static void | setExtensions (unsigned int contextID, Extensions *extensions) |
Protected Types | |
typedef buffered_value< GLuint > | FragmentProgramIDList |
typedef std::map< GLenum, Matrix > | MatrixList |
Protected Member Functions | |
virtual | ~FragmentProgram () |
Protected Attributes | |
FragmentProgramIDList | _fragmentProgramIDList |
std::string | _fragmentProgram |
LocalParamList | _programLocalParameters |
MatrixList | _matrixList |
Classes | |
class | Extensions |
|
|
|
|
|
|
|
|
|
Copy constructor using CopyOp to manage deep vs shallow copy. |
|
|
|
apply the OpenGL state attributes. The global state for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state. Implements osg::StateAttribute. |
|
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. Implements osg::StateAttribute. |
|
default to nothing to compile - all state is applied immediately. Reimplemented from osg::StateAttribute. |
|
use deleteFragmentProgramObject instead of glDeletePrograms to allow OpenGL Fragment Program objects to be cached until they can be deleted by the OpenGL context in which they were created, specified by contextID. |
|
Force a recompile on next apply() of associated OpenGL vertex program objects. |
|
flush all the cached fragment programs which need to be deleted in the OpenGL context related to contextID. |
|
Function to call to get the extension of a specified context. If the Extension object for that context has not yet been created and the 'createIfNotInitalized' flag has been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID.. |
|
Get the fragment program. |
|
Get the handle to the fragment program id for the current context. |
|
Get const list of Program Parameters |
|
Get list of Program Parameters |
|
|
|
|
|
release an OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics context if State object pointer == NULL. Reimplemented from osg::StateAttribute. |
|
setExtensions allows users to override the extensions across graphics contexts. typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. |
|
Set the fragment program using a C style string. |
|
Set the fragment program using C++ style string. |
|
Matrix |
|
Set Program Parameters |
|
|
|
|
|
|
|
|