Inheritance diagram for osg::VertexProgram:
Public Types | |
typedef std::map< GLuint, Vec4 > | LocalParamList |
typedef std::map< GLenum, Matrix > | MatrixList |
Public Member Functions | |
VertexProgram () | |
VertexProgram (const VertexProgram &vp, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
META_StateAttribute (osg, VertexProgram, VERTEXPROGRAM) | |
virtual int | compare (const osg::StateAttribute &sa) const |
virtual bool | getModeUsage (ModeUsage &usage) const |
GLuint & | getVertexProgramID (unsigned int contextID) const |
void | setVertexProgram (const char *program) |
void | setVertexProgram (const std::string &program) |
const std::string & | getVertexProgram () const |
void | setProgramLocalParameter (const GLuint index, const Vec4 &p) |
void | setLocalParameters (const LocalParamList &lpl) |
LocalParamList & | getLocalParameters () |
const LocalParamList & | getLocalParameters () const |
void | setMatrix (const GLenum mode, const Matrix &matrix) |
void | setMatrices (const MatrixList &matrices) |
MatrixList & | getMatrices () |
const MatrixList & | getMatrices () const |
void | dirtyVertexProgramObject () |
virtual void | apply (State &state) const |
virtual void | compileGLObjects (State &state) const |
virtual void | releaseGLObjects (State *state=0) const |
Static Public Member Functions | |
void | deleteVertexProgramObject (unsigned int contextID, GLuint handle) |
void | flushDeletedVertexProgramObjects (unsigned int contextID, double currentTime, double &availableTime) |
Extensions * | getExtensions (unsigned int contextID, bool createIfNotInitalized) |
void | setExtensions (unsigned int contextID, Extensions *extensions) |
Protected Types | |
typedef buffered_value< GLuint > | VertexProgramIDList |
Protected Member Functions | |
virtual | ~VertexProgram () |
Protected Attributes | |
VertexProgramIDList | _vertexProgramIDList |
std::string | _vertexProgram |
LocalParamList | _programLocalParameters |
MatrixList | _matrixList |
|
|
|
|
|
|
|
|
|
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. |
|
default to nothing to compile - all state is applied immediately. Reimplemented from osg::StateAttribute. |
|
Use deleteVertexProgramObject instead of glDeletePrograms to allow OpenGL Vertex Program objects to 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 vertex 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 Exentsion object for that context has not yet been created and the 'createIfNotInitalized' flag 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 const list of Program Parameters |
|
Get list of Program Parameters |
|
Get list of Matrices |
|
Get list of Matrices |
|
Return the modes associated with this StateAttribute. Reimplemented from osg::StateAttribute. |
|
Get the vertex program. |
|
Get the handle to the vertex program ID for the current context. |
|
|
|
Release any OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics contexts if State object pointer is NULL. Reimplemented from osg::StateAttribute. |
|
The setExtensions method 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 list of Program Parameters |
|
Set list of Matrices |
|
Matrix |
|
Set Program Parameters |
|
Set the vertex program using C++ style string. |
|
Set the vertex program using a C style string. |
|
|
|
|
|
|
|
|