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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 functions->fDeleteBuffers = nullGLDeleteBuffers; | 375 functions->fDeleteBuffers = nullGLDeleteBuffers; |
376 functions->fDeleteProgram = nullGLDelete; | 376 functions->fDeleteProgram = nullGLDelete; |
377 functions->fDeleteQueries = noOpGLDeleteIds; | 377 functions->fDeleteQueries = noOpGLDeleteIds; |
378 functions->fDeleteShader = nullGLDelete; | 378 functions->fDeleteShader = nullGLDelete; |
379 functions->fDeleteTextures = noOpGLDeleteIds; | 379 functions->fDeleteTextures = noOpGLDeleteIds; |
380 functions->fDeleteVertexArrays = noOpGLDeleteIds; | 380 functions->fDeleteVertexArrays = noOpGLDeleteIds; |
381 functions->fDepthMask = noOpGLDepthMask; | 381 functions->fDepthMask = noOpGLDepthMask; |
382 functions->fDisable = noOpGLDisable; | 382 functions->fDisable = noOpGLDisable; |
383 functions->fDisableVertexAttribArray = noOpGLDisableVertexAttribArray; | 383 functions->fDisableVertexAttribArray = noOpGLDisableVertexAttribArray; |
384 functions->fDrawArrays = noOpGLDrawArrays; | 384 functions->fDrawArrays = noOpGLDrawArrays; |
385 functions->fDrawArraysInstanced = noOpGLDrawArraysInstanced; | |
386 functions->fDrawBuffer = noOpGLDrawBuffer; | 385 functions->fDrawBuffer = noOpGLDrawBuffer; |
387 functions->fDrawBuffers = noOpGLDrawBuffers; | 386 functions->fDrawBuffers = noOpGLDrawBuffers; |
388 functions->fDrawElements = noOpGLDrawElements; | 387 functions->fDrawElements = noOpGLDrawElements; |
389 functions->fDrawElementsInstanced = noOpGLDrawElementsInstanced; | |
390 functions->fEnable = noOpGLEnable; | 388 functions->fEnable = noOpGLEnable; |
391 functions->fEnableVertexAttribArray = noOpGLEnableVertexAttribArray; | 389 functions->fEnableVertexAttribArray = noOpGLEnableVertexAttribArray; |
392 functions->fEndQuery = noOpGLEndQuery; | 390 functions->fEndQuery = noOpGLEndQuery; |
393 functions->fFinish = noOpGLFinish; | 391 functions->fFinish = noOpGLFinish; |
394 functions->fFlush = noOpGLFlush; | 392 functions->fFlush = noOpGLFlush; |
395 functions->fFlushMappedBufferRange = nullGLFlushMappedBufferRange; | 393 functions->fFlushMappedBufferRange = nullGLFlushMappedBufferRange; |
396 functions->fFrontFace = noOpGLFrontFace; | 394 functions->fFrontFace = noOpGLFrontFace; |
397 functions->fGenBuffers = nullGLGenBuffers; | 395 functions->fGenBuffers = nullGLGenBuffers; |
398 functions->fGenerateMipmap = nullGLGenerateMipmap; | 396 functions->fGenerateMipmap = nullGLGenerateMipmap; |
399 functions->fGenQueries = noOpGLGenIds; | 397 functions->fGenQueries = noOpGLGenIds; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 functions->fUniformMatrix2fv = noOpGLUniformMatrix2fv; | 457 functions->fUniformMatrix2fv = noOpGLUniformMatrix2fv; |
460 functions->fUniformMatrix3fv = noOpGLUniformMatrix3fv; | 458 functions->fUniformMatrix3fv = noOpGLUniformMatrix3fv; |
461 functions->fUniformMatrix4fv = noOpGLUniformMatrix4fv; | 459 functions->fUniformMatrix4fv = noOpGLUniformMatrix4fv; |
462 functions->fUnmapBuffer = nullGLUnmapBuffer; | 460 functions->fUnmapBuffer = nullGLUnmapBuffer; |
463 functions->fUseProgram = nullGLUseProgram; | 461 functions->fUseProgram = nullGLUseProgram; |
464 functions->fVertexAttrib1f = noOpGLVertexAttrib1f; | 462 functions->fVertexAttrib1f = noOpGLVertexAttrib1f; |
465 functions->fVertexAttrib2fv = noOpGLVertexAttrib2fv; | 463 functions->fVertexAttrib2fv = noOpGLVertexAttrib2fv; |
466 functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv; | 464 functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv; |
467 functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv; | 465 functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv; |
468 functions->fVertexAttribPointer = noOpGLVertexAttribPointer; | 466 functions->fVertexAttribPointer = noOpGLVertexAttribPointer; |
469 functions->fVertexAttribDivisor = noOpGLVertexAttribDivisor; | |
470 functions->fViewport = nullGLViewport; | 467 functions->fViewport = nullGLViewport; |
471 functions->fBindFramebuffer = nullGLBindFramebuffer; | 468 functions->fBindFramebuffer = nullGLBindFramebuffer; |
472 functions->fBindRenderbuffer = nullGLBindRenderbuffer; | 469 functions->fBindRenderbuffer = nullGLBindRenderbuffer; |
473 functions->fCheckFramebufferStatus = noOpGLCheckFramebufferStatus; | 470 functions->fCheckFramebufferStatus = noOpGLCheckFramebufferStatus; |
474 functions->fDeleteFramebuffers = nullGLDeleteFramebuffers; | 471 functions->fDeleteFramebuffers = nullGLDeleteFramebuffers; |
475 functions->fDeleteRenderbuffers = nullGLDeleteRenderbuffers; | 472 functions->fDeleteRenderbuffers = nullGLDeleteRenderbuffers; |
476 functions->fFramebufferRenderbuffer = nullGLFramebufferRenderbuffer; | 473 functions->fFramebufferRenderbuffer = nullGLFramebufferRenderbuffer; |
477 functions->fFramebufferTexture2D = nullGLFramebufferTexture2D; | 474 functions->fFramebufferTexture2D = nullGLFramebufferTexture2D; |
478 functions->fGenFramebuffers = noOpGLGenIds; | 475 functions->fGenFramebuffers = noOpGLGenIds; |
479 functions->fGenRenderbuffers = noOpGLGenIds; | 476 functions->fGenRenderbuffers = noOpGLGenIds; |
480 functions->fGetFramebufferAttachmentParameteriv = noOpGLGetFramebufferAttach
mentParameteriv; | 477 functions->fGetFramebufferAttachmentParameteriv = noOpGLGetFramebufferAttach
mentParameteriv; |
481 functions->fGetRenderbufferParameteriv = noOpGLGetRenderbufferParameteriv; | 478 functions->fGetRenderbufferParameteriv = noOpGLGetRenderbufferParameteriv; |
482 functions->fRenderbufferStorage = noOpGLRenderbufferStorage; | 479 functions->fRenderbufferStorage = noOpGLRenderbufferStorage; |
483 functions->fRenderbufferStorageMultisample = noOpGLRenderbufferStorageMultis
ample; | 480 functions->fRenderbufferStorageMultisample = noOpGLRenderbufferStorageMultis
ample; |
484 functions->fBlitFramebuffer = noOpGLBlitFramebuffer; | 481 functions->fBlitFramebuffer = noOpGLBlitFramebuffer; |
485 functions->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFramebuf
fer; | 482 functions->fResolveMultisampleFramebuffer = noOpGLResolveMultisampleFramebuf
fer; |
486 functions->fMatrixLoadf = noOpGLMatrixLoadf; | 483 functions->fMatrixLoadf = noOpGLMatrixLoadf; |
487 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; | 484 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; |
488 functions->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationIndexed; | 485 functions->fBindFragDataLocationIndexed = noOpGLBindFragDataLocationIndexed; |
489 | 486 |
490 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio
ns->fGetStringi, | 487 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio
ns->fGetStringi, |
491 functions->fGetIntegerv); | 488 functions->fGetIntegerv); |
492 return interface; | 489 return interface; |
493 } | 490 } |
OLD | NEW |