OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 | 8 |
9 #include "gl/GrGLInterface.h" | 9 #include "gl/GrGLInterface.h" |
10 #include "GrGLDefines.h" | 10 #include "GrGLDefines.h" |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 functions->fUniform3iv = noOpGLUniform3iv; | 447 functions->fUniform3iv = noOpGLUniform3iv; |
448 functions->fUniform4f = noOpGLUniform4f; | 448 functions->fUniform4f = noOpGLUniform4f; |
449 functions->fUniform4i = noOpGLUniform4i; | 449 functions->fUniform4i = noOpGLUniform4i; |
450 functions->fUniform4fv = noOpGLUniform4fv; | 450 functions->fUniform4fv = noOpGLUniform4fv; |
451 functions->fUniform4iv = noOpGLUniform4iv; | 451 functions->fUniform4iv = noOpGLUniform4iv; |
452 functions->fUniformMatrix2fv = noOpGLUniformMatrix2fv; | 452 functions->fUniformMatrix2fv = noOpGLUniformMatrix2fv; |
453 functions->fUniformMatrix3fv = noOpGLUniformMatrix3fv; | 453 functions->fUniformMatrix3fv = noOpGLUniformMatrix3fv; |
454 functions->fUniformMatrix4fv = noOpGLUniformMatrix4fv; | 454 functions->fUniformMatrix4fv = noOpGLUniformMatrix4fv; |
455 functions->fUnmapBuffer = nullGLUnmapBuffer; | 455 functions->fUnmapBuffer = nullGLUnmapBuffer; |
456 functions->fUseProgram = nullGLUseProgram; | 456 functions->fUseProgram = nullGLUseProgram; |
| 457 functions->fVertexAttrib1f = noOpGLVertexAttrib1f; |
| 458 functions->fVertexAttrib2fv = noOpGLVertexAttrib2fv; |
| 459 functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv; |
457 functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv; | 460 functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv; |
458 functions->fVertexAttribPointer = noOpGLVertexAttribPointer; | 461 functions->fVertexAttribPointer = noOpGLVertexAttribPointer; |
459 functions->fViewport = nullGLViewport; | 462 functions->fViewport = nullGLViewport; |
460 functions->fBindFramebuffer = nullGLBindFramebuffer; | 463 functions->fBindFramebuffer = nullGLBindFramebuffer; |
461 functions->fBindRenderbuffer = nullGLBindRenderbuffer; | 464 functions->fBindRenderbuffer = nullGLBindRenderbuffer; |
462 functions->fCheckFramebufferStatus = noOpGLCheckFramebufferStatus; | 465 functions->fCheckFramebufferStatus = noOpGLCheckFramebufferStatus; |
463 functions->fDeleteFramebuffers = nullGLDeleteFramebuffers; | 466 functions->fDeleteFramebuffers = nullGLDeleteFramebuffers; |
464 functions->fDeleteRenderbuffers = nullGLDeleteRenderbuffers; | 467 functions->fDeleteRenderbuffers = nullGLDeleteRenderbuffers; |
465 functions->fFramebufferRenderbuffer = nullGLFramebufferRenderbuffer; | 468 functions->fFramebufferRenderbuffer = nullGLFramebufferRenderbuffer; |
466 functions->fFramebufferTexture2D = nullGLFramebufferTexture2D; | 469 functions->fFramebufferTexture2D = nullGLFramebufferTexture2D; |
467 functions->fGenFramebuffers = noOpGLGenIds; | 470 functions->fGenFramebuffers = noOpGLGenIds; |
468 functions->fGenRenderbuffers = noOpGLGenIds; | 471 functions->fGenRenderbuffers = noOpGLGenIds; |
469 functions->fGetFramebufferAttachmentParameteriv = noOpGLGetFramebufferAttach
mentParameteriv; | 472 functions->fGetFramebufferAttachmentParameteriv = noOpGLGetFramebufferAttach
mentParameteriv; |
470 functions->fGetRenderbufferParameteriv = noOpGLGetRenderbufferParameteriv; | 473 functions->fGetRenderbufferParameteriv = noOpGLGetRenderbufferParameteriv; |
471 functions->fRenderbufferStorage = noOpGLRenderbufferStorage; | 474 functions->fRenderbufferStorage = noOpGLRenderbufferStorage; |
472 functions->fRenderbufferStorageMultisample = noOpGLRenderbufferStorageMultis
ample; | 475 functions->fRenderbufferStorageMultisample = noOpGLRenderbufferStorageMultis
ample; |
473 functions->fBlitFramebuffer = noOpGLBlitFramebuffer; | 476 functions->fBlitFramebuffer = noOpGLBlitFramebuffer; |
474 functions->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFramebuf
fer; | 477 functions->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFramebuf
fer; |
475 functions->fMatrixLoadf = noOpGLMatrixLoadf; | 478 functions->fMatrixLoadf = noOpGLMatrixLoadf; |
476 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; | 479 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; |
477 functions->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationIndexed; | 480 functions->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationIndexed; |
478 | 481 |
479 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio
ns->fGetStringi, | 482 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio
ns->fGetStringi, |
480 functions->fGetIntegerv); | 483 functions->fGetIntegerv); |
481 return interface; | 484 return interface; |
482 } | 485 } |
OLD | NEW |