Flutter Engine
The Flutter Engine
|
#include <GrGLVertexArray.h>
Public Member Functions | |
GrGLVertexArray (GrGLint id, int attribCount) | |
GrGLAttribArrayState * | bind (GrGLGpu *) |
GrGLAttribArrayState * | bindWithIndexBuffer (GrGLGpu *gpu, const GrBuffer *indexBuffer) |
GrGLuint | arrayID () const |
void | invalidateCachedState () |
This class represents an OpenGL vertex array object. It manages the lifetime of the vertex array and is used to track the state of the vertex array to avoid redundant GL calls.
Definition at line 102 of file GrGLVertexArray.h.
Definition at line 193 of file GrGLVertexArray.cpp.
|
inline |
Definition at line 119 of file GrGLVertexArray.h.
GrGLAttribArrayState * GrGLVertexArray::bind | ( | GrGLGpu * | gpu | ) |
Binds this vertex array. If the ID has been deleted or abandoned then nullptr is returned. Otherwise, the GrGLAttribArrayState that is tracking this vertex array's attrib bindings is returned.
Definition at line 199 of file GrGLVertexArray.cpp.
GrGLAttribArrayState * GrGLVertexArray::bindWithIndexBuffer | ( | GrGLGpu * | gpu, |
const GrBuffer * | indexBuffer | ||
) |
This is a version of the above function that also binds an index buffer to the vertex array object.
Definition at line 207 of file GrGLVertexArray.cpp.
void GrGLVertexArray::invalidateCachedState | ( | ) |
Definition at line 225 of file GrGLVertexArray.cpp.