Inheritance diagram for osg::VertexProgram:
Public Types | |
typedef std::map< GLuint, Vec4 > | LocalParamList |
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 std::string &program) |
void | setVertexProgram (const char *program) |
const std::string & | getVertexProgram () const |
void | setProgramLocalParameter (const GLuint index, const Vec4 &p) |
LocalParamList & | getLocalParamList () |
const LocalParamList & | getLocalParamList () const |
void | setMatrix (const GLenum mode, const Matrix &matrix) |
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 | |
static void | deleteVertexProgramObject (unsigned int contextID, GLuint handle) |
static void | flushDeletedVertexProgramObjects (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 > | VertexProgramIDList |
typedef std::map< GLenum, Matrix > | MatrixList |
Protected Member Functions | |
virtual | ~VertexProgram () |
Protected Attributes | |
VertexProgramIDList | _vertexProgramIDList |
std::string | _vertexProgram |
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 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 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 matrix. |
|
Set program parameters. |
|
Set the vertex program using a C style string. |
|
Set the vertex program using C++ style string. |
|
|
|
|
|
|
|
|