diff options
author | egdaniel <egdaniel@google.com> | 2014-10-24 15:00:50 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-24 15:00:50 -0700 |
commit | 27c1521ccf0f833affa1182d6d9bc5e31b3af351 (patch) | |
tree | 65c5fb4ee7919e33026824b7ea70b520ea2684fc /include | |
parent | f622a6c8fd176acf9944de8df00d7f0bb56b67d3 (diff) |
Add gpu support for glVertexAttrb1f, 2fv, and 3fv
BUG=skia:
Review URL: https://codereview.chromium.org/662583003
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/gl/GrGLFunctions.h | 3 | ||||
-rw-r--r-- | include/gpu/gl/GrGLInterface.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/gpu/gl/GrGLFunctions.h b/include/gpu/gl/GrGLFunctions.h index 45bf582bc3..dd62085012 100644 --- a/include/gpu/gl/GrGLFunctions.h +++ b/include/gpu/gl/GrGLFunctions.h @@ -208,6 +208,9 @@ extern "C" { typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUnmapBufferSubDataProc)(const GrGLvoid* mem); typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUnmapTexSubImage2DProc)(const GrGLvoid* mem); typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLUseProgramProc)(GrGLuint program); + typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttrib1fProc)(GrGLuint indx, const GrGLfloat value); + typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttrib2fvProc)(GrGLuint indx, const GrGLfloat* values); + typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttrib3fvProc)(GrGLuint indx, const GrGLfloat* values); typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttrib4fvProc)(GrGLuint indx, const GrGLfloat* values); typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLVertexAttribPointerProc)(GrGLuint indx, GrGLint size, GrGLenum type, GrGLboolean normalized, GrGLsizei stride, const GrGLvoid* ptr); typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLViewportProc)(GrGLint x, GrGLint y, GrGLsizei width, GrGLsizei height); diff --git a/include/gpu/gl/GrGLInterface.h b/include/gpu/gl/GrGLInterface.h index 32552e6402..5a4b1e77cf 100644 --- a/include/gpu/gl/GrGLInterface.h +++ b/include/gpu/gl/GrGLInterface.h @@ -311,6 +311,9 @@ public: GLPtr<GrGLUnmapBufferSubDataProc> fUnmapBufferSubData; GLPtr<GrGLUnmapTexSubImage2DProc> fUnmapTexSubImage2D; GLPtr<GrGLUseProgramProc> fUseProgram; + GLPtr<GrGLVertexAttrib1fProc> fVertexAttrib1f; + GLPtr<GrGLVertexAttrib2fvProc> fVertexAttrib2fv; + GLPtr<GrGLVertexAttrib3fvProc> fVertexAttrib3fv; GLPtr<GrGLVertexAttrib4fvProc> fVertexAttrib4fv; GLPtr<GrGLVertexAttribPointerProc> fVertexAttribPointer; GLPtr<GrGLViewportProc> fViewport; |