Flutter Engine
The Flutter Engine
|
#include <GrGLVertexArray.h>
Public Member Functions | |
GrGLAttribArrayState (int arrayCount=0) | |
void | resize (int newCount) |
void | set (GrGLGpu *, int attribIndex, const GrBuffer *vertexBuffer, GrVertexAttribType cpuType, SkSLType gpuType, GrGLsizei stride, size_t offsetInBytes, int divisor=0) |
void | enableVertexArrays (const GrGLGpu *, int enabledCount, GrPrimitiveRestart=GrPrimitiveRestart::kNo) |
void | invalidate () |
int | count () const |
This sets and tracks the vertex attribute array state. It is used internally by GrGLVertexArray (below) but is separate because it is also used to track the state of vertex array object 0.
Definition at line 26 of file GrGLVertexArray.h.
|
inlineexplicit |
Definition at line 28 of file GrGLVertexArray.h.
|
inline |
The number of attrib arrays that this object is configured to track.
Definition at line 68 of file GrGLVertexArray.h.
void GrGLAttribArrayState::enableVertexArrays | ( | const GrGLGpu * | gpu, |
int | enabledCount, | ||
GrPrimitiveRestart | enablePrimitiveRestart = GrPrimitiveRestart::kNo |
||
) |
This function enables the first 'enabledCount' vertex arrays and disables the rest.
Definition at line 156 of file GrGLVertexArray.cpp.
|
inline |
Definition at line 57 of file GrGLVertexArray.h.
|
inline |
Definition at line 32 of file GrGLVertexArray.h.
void GrGLAttribArrayState::set | ( | GrGLGpu * | gpu, |
int | attribIndex, | ||
const GrBuffer * | vertexBuffer, | ||
GrVertexAttribType | cpuType, | ||
SkSLType | gpuType, | ||
GrGLsizei | stride, | ||
size_t | offsetInBytes, | ||
int | divisor = 0 |
||
) |
This function enables and sets vertex attrib state for the specified attrib index. It is assumed that the GrGLAttribArrayState is tracking the state of the currently bound vertex array object.
Definition at line 91 of file GrGLVertexArray.cpp.