2011-03-14 21:23:01 +00:00
|
|
|
|
2011-07-28 14:26:00 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2011 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
2011-03-14 21:23:01 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef GrGLInterface_DEFINED
|
|
|
|
#define GrGLInterface_DEFINED
|
|
|
|
|
2012-05-07 21:33:56 +00:00
|
|
|
#include "GrGLFunctions.h"
|
2011-08-19 13:28:54 +00:00
|
|
|
#include "GrRefCnt.h"
|
2011-03-14 21:23:01 +00:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2012-02-10 20:05:18 +00:00
|
|
|
/**
|
|
|
|
* Classifies GL contexts (currently as Desktop vs. ES2). This is a bitfield.
|
|
|
|
* A GrGLInterface (defined below) may support multiple bindings.
|
|
|
|
*/
|
|
|
|
enum GrGLBinding {
|
|
|
|
kNone_GrGLBinding = 0x0,
|
|
|
|
|
|
|
|
kDesktop_GrGLBinding = 0x01,
|
|
|
|
kES2_GrGLBinding = 0x02,
|
|
|
|
|
|
|
|
// for iteration of GrGLBindings
|
2012-02-10 20:25:36 +00:00
|
|
|
kFirstGrGLBinding = kDesktop_GrGLBinding,
|
2012-02-10 20:05:18 +00:00
|
|
|
kLastGrGLBinding = kES2_GrGLBinding
|
|
|
|
};
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2011-08-19 13:28:54 +00:00
|
|
|
/**
|
|
|
|
* Rather than depend on platform-specific GL headers and libraries, we require
|
|
|
|
* the client to provide a struct of GL function pointers. This struct can be
|
|
|
|
* specified per-GrContext as a parameter to GrContext::Create. If NULL is
|
|
|
|
* passed to Create then the "default" GL interface is used. If the default is
|
|
|
|
* also NULL GrContext creation will fail.
|
|
|
|
*
|
2011-09-16 18:51:57 +00:00
|
|
|
* The default interface is returned by GrGLDefaultInterface. This function's
|
2012-03-19 14:42:13 +00:00
|
|
|
* implementation is platform-specific. Several have been provided, along with
|
|
|
|
* an implementation that simply returns NULL. It is implementation-specific
|
2011-09-16 18:51:57 +00:00
|
|
|
* whether the same GrGLInterface is returned or whether a new one is created
|
|
|
|
* at each call. Some platforms may not be able to use a single GrGLInterface
|
|
|
|
* because extension function ptrs vary across contexts. Note that GrGLInterface
|
2012-08-23 18:09:54 +00:00
|
|
|
* is ref-counted. So if the same object is returned by multiple calls to
|
2011-09-16 18:51:57 +00:00
|
|
|
* GrGLDefaultInterface, each should bump the ref count.
|
2011-09-01 13:28:16 +00:00
|
|
|
*
|
|
|
|
* By defining GR_GL_PER_GL_CALL_IFACE_CALLBACK to 1 the client can specify a
|
|
|
|
* callback function that will be called prior to each GL function call. See
|
|
|
|
* comments in GrGLConfig.h
|
2011-03-14 21:23:01 +00:00
|
|
|
*/
|
2011-08-19 13:28:54 +00:00
|
|
|
|
2011-03-14 21:23:01 +00:00
|
|
|
struct GrGLInterface;
|
|
|
|
|
2011-09-16 18:51:57 +00:00
|
|
|
const GrGLInterface* GrGLDefaultInterface();
|
2011-03-14 21:23:01 +00:00
|
|
|
|
2011-10-24 21:17:53 +00:00
|
|
|
/**
|
|
|
|
* Creates a GrGLInterface for a "native" GL context (e.g. WGL on windows,
|
|
|
|
* GLX on linux, AGL on Mac). On platforms that have context-specific function
|
2012-08-23 18:09:54 +00:00
|
|
|
* pointers for GL extensions (e.g. windows) the returned interface is only
|
2011-10-24 21:17:53 +00:00
|
|
|
* valid for the context that was current at creation.
|
|
|
|
*/
|
2011-10-19 20:43:20 +00:00
|
|
|
const GrGLInterface* GrGLCreateNativeInterface();
|
|
|
|
|
2012-03-28 16:19:11 +00:00
|
|
|
#if SK_MESA
|
2011-10-24 21:17:53 +00:00
|
|
|
/**
|
|
|
|
* Creates a GrGLInterface for an OSMesa context.
|
|
|
|
*/
|
2011-10-19 20:43:20 +00:00
|
|
|
const GrGLInterface* GrGLCreateMesaInterface();
|
2012-03-28 16:19:11 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if SK_ANGLE
|
|
|
|
/**
|
|
|
|
* Creates a GrGLInterface for an ANGLE context.
|
|
|
|
*/
|
|
|
|
const GrGLInterface* GrGLCreateANGLEInterface();
|
|
|
|
#endif
|
2011-10-19 20:43:20 +00:00
|
|
|
|
2011-10-27 20:44:19 +00:00
|
|
|
/**
|
|
|
|
* Creates a null GrGLInterface that doesn't draw anything. Used for measuring
|
|
|
|
* CPU overhead.
|
|
|
|
*/
|
|
|
|
const GrGLInterface* GrGLCreateNullInterface();
|
|
|
|
|
2012-03-19 14:42:13 +00:00
|
|
|
/**
|
2012-08-23 18:09:54 +00:00
|
|
|
* Creates a debugging GrGLInterface that doesn't draw anything. Used for
|
2012-03-19 14:42:13 +00:00
|
|
|
* finding memory leaks and invalid memory accesses.
|
|
|
|
*/
|
|
|
|
const GrGLInterface* GrGLCreateDebugInterface();
|
|
|
|
|
2011-09-01 13:28:16 +00:00
|
|
|
#if GR_GL_PER_GL_FUNC_CALLBACK
|
|
|
|
typedef void (*GrGLInterfaceCallbackProc)(const GrGLInterface*);
|
|
|
|
typedef intptr_t GrGLInterfaceCallbackData;
|
|
|
|
#endif
|
|
|
|
|
2011-05-04 12:35:39 +00:00
|
|
|
/*
|
2012-05-07 21:45:48 +00:00
|
|
|
* GrContext uses the following interface to make all calls into OpenGL. When a
|
|
|
|
* GrContext is created it is given a GrGLInterface. The interface's function
|
|
|
|
* pointers must be valid for the OpenGL context associated with the GrContext.
|
|
|
|
* On some platforms, such as Windows, function pointers for OpenGL extensions
|
|
|
|
* may vary between OpenGL contexts. So the caller must be careful to use a
|
|
|
|
* GrGLInterface initialized for the correct context. All functions that should
|
|
|
|
* be available based on the OpenGL's version and extension string must be
|
|
|
|
* non-NULL or GrContext creation will fail. This can be tested with the
|
|
|
|
* validate() method when the OpenGL context has been made current.
|
2011-05-04 12:35:39 +00:00
|
|
|
*/
|
2011-08-19 13:28:54 +00:00
|
|
|
struct GR_API GrGLInterface : public GrRefCnt {
|
2012-03-29 21:04:52 +00:00
|
|
|
private:
|
2012-05-07 17:09:37 +00:00
|
|
|
// simple wrapper class that exists only to initialize a pointer to NULL
|
2012-03-29 21:04:52 +00:00
|
|
|
template <typename FNPTR_TYPE> class GLPtr {
|
|
|
|
public:
|
|
|
|
GLPtr() : fPtr(NULL) {}
|
|
|
|
GLPtr operator =(FNPTR_TYPE ptr) { fPtr = ptr; return *this; }
|
|
|
|
operator FNPTR_TYPE() const { return fPtr; }
|
|
|
|
private:
|
|
|
|
FNPTR_TYPE fPtr;
|
|
|
|
};
|
|
|
|
|
2012-06-21 20:25:03 +00:00
|
|
|
typedef GrRefCnt INHERITED;
|
|
|
|
|
2012-03-29 21:04:52 +00:00
|
|
|
public:
|
2012-06-21 20:25:03 +00:00
|
|
|
SK_DECLARE_INST_COUNT(GrGLInterface)
|
|
|
|
|
2011-08-19 13:28:54 +00:00
|
|
|
GrGLInterface();
|
|
|
|
|
2012-02-10 20:05:18 +00:00
|
|
|
// Validates that the GrGLInterface supports a binding. This means that
|
|
|
|
// the GrGLinterface advertises the binding in fBindingsExported and all
|
2012-05-07 21:45:48 +00:00
|
|
|
// the necessary function pointers have been initialized. The interface is
|
|
|
|
// validated for the current OpenGL context.
|
2012-02-10 20:05:18 +00:00
|
|
|
bool validate(GrGLBinding binding) const;
|
|
|
|
|
2011-03-18 20:41:44 +00:00
|
|
|
// Indicator variable specifying the type of GL implementation
|
2012-03-29 21:04:52 +00:00
|
|
|
// exported: GLES2 and/or Desktop.
|
2011-03-18 20:41:44 +00:00
|
|
|
GrGLBinding fBindingsExported;
|
|
|
|
|
2012-03-29 21:04:52 +00:00
|
|
|
GLPtr<GrGLActiveTextureProc> fActiveTexture;
|
|
|
|
GLPtr<GrGLAttachShaderProc> fAttachShader;
|
|
|
|
GLPtr<GrGLBeginQueryProc> fBeginQuery;
|
|
|
|
GLPtr<GrGLBindAttribLocationProc> fBindAttribLocation;
|
|
|
|
GLPtr<GrGLBindBufferProc> fBindBuffer;
|
|
|
|
GLPtr<GrGLBindFragDataLocationProc> fBindFragDataLocation;
|
|
|
|
GLPtr<GrGLBindFragDataLocationIndexedProc> fBindFragDataLocationIndexed;
|
|
|
|
GLPtr<GrGLBindFramebufferProc> fBindFramebuffer;
|
|
|
|
GLPtr<GrGLBindRenderbufferProc> fBindRenderbuffer;
|
|
|
|
GLPtr<GrGLBindTextureProc> fBindTexture;
|
|
|
|
GLPtr<GrGLBlendColorProc> fBlendColor;
|
|
|
|
GLPtr<GrGLBlendFuncProc> fBlendFunc;
|
|
|
|
GLPtr<GrGLBlitFramebufferProc> fBlitFramebuffer;
|
|
|
|
GLPtr<GrGLBufferDataProc> fBufferData;
|
|
|
|
GLPtr<GrGLBufferSubDataProc> fBufferSubData;
|
|
|
|
GLPtr<GrGLCheckFramebufferStatusProc> fCheckFramebufferStatus;
|
|
|
|
GLPtr<GrGLClearProc> fClear;
|
|
|
|
GLPtr<GrGLClearColorProc> fClearColor;
|
|
|
|
GLPtr<GrGLClearStencilProc> fClearStencil;
|
|
|
|
GLPtr<GrGLColorMaskProc> fColorMask;
|
|
|
|
GLPtr<GrGLCompileShaderProc> fCompileShader;
|
|
|
|
GLPtr<GrGLCompressedTexImage2DProc> fCompressedTexImage2D;
|
|
|
|
GLPtr<GrGLCreateProgramProc> fCreateProgram;
|
|
|
|
GLPtr<GrGLCreateShaderProc> fCreateShader;
|
|
|
|
GLPtr<GrGLCullFaceProc> fCullFace;
|
|
|
|
GLPtr<GrGLDeleteBuffersProc> fDeleteBuffers;
|
|
|
|
GLPtr<GrGLDeleteFramebuffersProc> fDeleteFramebuffers;
|
|
|
|
GLPtr<GrGLDeleteProgramProc> fDeleteProgram;
|
|
|
|
GLPtr<GrGLDeleteQueriesProc> fDeleteQueries;
|
|
|
|
GLPtr<GrGLDeleteRenderbuffersProc> fDeleteRenderbuffers;
|
|
|
|
GLPtr<GrGLDeleteShaderProc> fDeleteShader;
|
|
|
|
GLPtr<GrGLDeleteTexturesProc> fDeleteTextures;
|
|
|
|
GLPtr<GrGLDepthMaskProc> fDepthMask;
|
|
|
|
GLPtr<GrGLDisableProc> fDisable;
|
|
|
|
GLPtr<GrGLDisableVertexAttribArrayProc> fDisableVertexAttribArray;
|
|
|
|
GLPtr<GrGLDrawArraysProc> fDrawArrays;
|
|
|
|
GLPtr<GrGLDrawBufferProc> fDrawBuffer;
|
|
|
|
GLPtr<GrGLDrawBuffersProc> fDrawBuffers;
|
|
|
|
GLPtr<GrGLDrawElementsProc> fDrawElements;
|
|
|
|
GLPtr<GrGLEnableProc> fEnable;
|
|
|
|
GLPtr<GrGLEnableVertexAttribArrayProc> fEnableVertexAttribArray;
|
|
|
|
GLPtr<GrGLEndQueryProc> fEndQuery;
|
|
|
|
GLPtr<GrGLFinishProc> fFinish;
|
|
|
|
GLPtr<GrGLFlushProc> fFlush;
|
|
|
|
GLPtr<GrGLFramebufferRenderbufferProc> fFramebufferRenderbuffer;
|
|
|
|
GLPtr<GrGLFramebufferTexture2DProc> fFramebufferTexture2D;
|
|
|
|
GLPtr<GrGLFrontFaceProc> fFrontFace;
|
|
|
|
GLPtr<GrGLGenBuffersProc> fGenBuffers;
|
|
|
|
GLPtr<GrGLGenFramebuffersProc> fGenFramebuffers;
|
|
|
|
GLPtr<GrGLGenQueriesProc> fGenQueries;
|
|
|
|
GLPtr<GrGLGenRenderbuffersProc> fGenRenderbuffers;
|
|
|
|
GLPtr<GrGLGenTexturesProc> fGenTextures;
|
|
|
|
GLPtr<GrGLGetBufferParameterivProc> fGetBufferParameteriv;
|
|
|
|
GLPtr<GrGLGetErrorProc> fGetError;
|
|
|
|
GLPtr<GrGLGetFramebufferAttachmentParameterivProc> fGetFramebufferAttachmentParameteriv;
|
|
|
|
GLPtr<GrGLGetIntegervProc> fGetIntegerv;
|
|
|
|
GLPtr<GrGLGetQueryObjecti64vProc> fGetQueryObjecti64v;
|
|
|
|
GLPtr<GrGLGetQueryObjectivProc> fGetQueryObjectiv;
|
|
|
|
GLPtr<GrGLGetQueryObjectui64vProc> fGetQueryObjectui64v;
|
|
|
|
GLPtr<GrGLGetQueryObjectuivProc> fGetQueryObjectuiv;
|
|
|
|
GLPtr<GrGLGetQueryivProc> fGetQueryiv;
|
|
|
|
GLPtr<GrGLGetProgramInfoLogProc> fGetProgramInfoLog;
|
|
|
|
GLPtr<GrGLGetProgramivProc> fGetProgramiv;
|
|
|
|
GLPtr<GrGLGetRenderbufferParameterivProc> fGetRenderbufferParameteriv;
|
|
|
|
GLPtr<GrGLGetShaderInfoLogProc> fGetShaderInfoLog;
|
|
|
|
GLPtr<GrGLGetShaderivProc> fGetShaderiv;
|
|
|
|
GLPtr<GrGLGetStringProc> fGetString;
|
|
|
|
GLPtr<GrGLGetTexLevelParameterivProc> fGetTexLevelParameteriv;
|
|
|
|
GLPtr<GrGLGetUniformLocationProc> fGetUniformLocation;
|
|
|
|
GLPtr<GrGLLineWidthProc> fLineWidth;
|
|
|
|
GLPtr<GrGLLinkProgramProc> fLinkProgram;
|
|
|
|
GLPtr<GrGLMapBufferProc> fMapBuffer;
|
|
|
|
GLPtr<GrGLPixelStoreiProc> fPixelStorei;
|
|
|
|
GLPtr<GrGLQueryCounterProc> fQueryCounter;
|
|
|
|
GLPtr<GrGLReadBufferProc> fReadBuffer;
|
|
|
|
GLPtr<GrGLReadPixelsProc> fReadPixels;
|
|
|
|
GLPtr<GrGLRenderbufferStorageProc> fRenderbufferStorage;
|
|
|
|
GLPtr<GrGLRenderbufferStorageMultisampleProc> fRenderbufferStorageMultisample;
|
2012-04-11 18:16:41 +00:00
|
|
|
GLPtr<GrGLRenderbufferStorageMultisampleCoverageProc> fRenderbufferStorageMultisampleCoverage;
|
2012-03-29 21:04:52 +00:00
|
|
|
GLPtr<GrGLResolveMultisampleFramebufferProc> fResolveMultisampleFramebuffer;
|
|
|
|
GLPtr<GrGLScissorProc> fScissor;
|
|
|
|
GLPtr<GrGLShaderSourceProc> fShaderSource;
|
|
|
|
GLPtr<GrGLStencilFuncProc> fStencilFunc;
|
|
|
|
GLPtr<GrGLStencilFuncSeparateProc> fStencilFuncSeparate;
|
|
|
|
GLPtr<GrGLStencilMaskProc> fStencilMask;
|
|
|
|
GLPtr<GrGLStencilMaskSeparateProc> fStencilMaskSeparate;
|
|
|
|
GLPtr<GrGLStencilOpProc> fStencilOp;
|
|
|
|
GLPtr<GrGLStencilOpSeparateProc> fStencilOpSeparate;
|
|
|
|
GLPtr<GrGLTexImage2DProc> fTexImage2D;
|
|
|
|
GLPtr<GrGLTexParameteriProc> fTexParameteri;
|
2012-05-31 17:59:23 +00:00
|
|
|
GLPtr<GrGLTexParameterivProc> fTexParameteriv;
|
2012-03-29 21:04:52 +00:00
|
|
|
GLPtr<GrGLTexSubImage2DProc> fTexSubImage2D;
|
|
|
|
GLPtr<GrGLTexStorage2DProc> fTexStorage2D;
|
|
|
|
GLPtr<GrGLUniform1fProc> fUniform1f;
|
|
|
|
GLPtr<GrGLUniform1iProc> fUniform1i;
|
|
|
|
GLPtr<GrGLUniform1fvProc> fUniform1fv;
|
|
|
|
GLPtr<GrGLUniform1ivProc> fUniform1iv;
|
|
|
|
GLPtr<GrGLUniform2fProc> fUniform2f;
|
|
|
|
GLPtr<GrGLUniform2iProc> fUniform2i;
|
|
|
|
GLPtr<GrGLUniform2fvProc> fUniform2fv;
|
|
|
|
GLPtr<GrGLUniform2ivProc> fUniform2iv;
|
|
|
|
GLPtr<GrGLUniform3fProc> fUniform3f;
|
|
|
|
GLPtr<GrGLUniform3iProc> fUniform3i;
|
|
|
|
GLPtr<GrGLUniform3fvProc> fUniform3fv;
|
|
|
|
GLPtr<GrGLUniform3ivProc> fUniform3iv;
|
|
|
|
GLPtr<GrGLUniform4fProc> fUniform4f;
|
|
|
|
GLPtr<GrGLUniform4iProc> fUniform4i;
|
|
|
|
GLPtr<GrGLUniform4fvProc> fUniform4fv;
|
|
|
|
GLPtr<GrGLUniform4ivProc> fUniform4iv;
|
|
|
|
GLPtr<GrGLUniformMatrix2fvProc> fUniformMatrix2fv;
|
|
|
|
GLPtr<GrGLUniformMatrix3fvProc> fUniformMatrix3fv;
|
|
|
|
GLPtr<GrGLUniformMatrix4fvProc> fUniformMatrix4fv;
|
|
|
|
GLPtr<GrGLUnmapBufferProc> fUnmapBuffer;
|
|
|
|
GLPtr<GrGLUseProgramProc> fUseProgram;
|
|
|
|
GLPtr<GrGLVertexAttrib4fvProc> fVertexAttrib4fv;
|
|
|
|
GLPtr<GrGLVertexAttribPointerProc> fVertexAttribPointer;
|
|
|
|
GLPtr<GrGLViewportProc> fViewport;
|
2011-05-20 14:13:56 +00:00
|
|
|
|
2012-06-06 15:17:54 +00:00
|
|
|
// Experimental: Functions for GL_NV_path_rendering. These will be
|
2012-08-23 18:09:54 +00:00
|
|
|
// alphabetized with the above functions once this is fully supported
|
2012-06-06 15:17:54 +00:00
|
|
|
// (and functions we are unlikely to use will possibly be omitted).
|
|
|
|
GLPtr<GrGLMatrixModeProc> fMatrixMode;
|
|
|
|
GLPtr<GrGLLoadIdentityProc> fLoadIdentity;
|
|
|
|
GLPtr<GrGLLoadMatrixfProc> fLoadMatrixf;
|
|
|
|
GLPtr<GrGLPathCommandsProc> fPathCommands;
|
|
|
|
GLPtr<GrGLPathCoordsProc> fPathCoords;
|
|
|
|
GLPtr<GrGLPathSubCommandsProc> fPathSubCommands;
|
|
|
|
GLPtr<GrGLPathSubCoordsProc> fPathSubCoords;
|
|
|
|
GLPtr<GrGLPathStringProc> fPathString;
|
|
|
|
GLPtr<GrGLPathGlyphsProc> fPathGlyphs;
|
|
|
|
GLPtr<GrGLPathGlyphRangeProc> fPathGlyphRange;
|
|
|
|
GLPtr<GrGLWeightPathsProc> fWeightPaths;
|
|
|
|
GLPtr<GrGLCopyPathProc> fCopyPath;
|
|
|
|
GLPtr<GrGLInterpolatePathsProc> fInterpolatePaths;
|
|
|
|
GLPtr<GrGLTransformPathProc> fTransformPath;
|
|
|
|
GLPtr<GrGLPathParameterivProc> fPathParameteriv;
|
|
|
|
GLPtr<GrGLPathParameteriProc> fPathParameteri;
|
|
|
|
GLPtr<GrGLPathParameterfvProc> fPathParameterfv;
|
|
|
|
GLPtr<GrGLPathParameterfProc> fPathParameterf;
|
|
|
|
GLPtr<GrGLPathDashArrayProc> fPathDashArray;
|
|
|
|
GLPtr<GrGLGenPathsProc> fGenPaths;
|
|
|
|
GLPtr<GrGLDeletePathsProc> fDeletePaths;
|
|
|
|
GLPtr<GrGLIsPathProc> fIsPath;
|
|
|
|
GLPtr<GrGLPathStencilFuncProc> fPathStencilFunc;
|
|
|
|
GLPtr<GrGLPathStencilDepthOffsetProc> fPathStencilDepthOffset;
|
|
|
|
GLPtr<GrGLStencilFillPathProc> fStencilFillPath;
|
|
|
|
GLPtr<GrGLStencilStrokePathProc> fStencilStrokePath;
|
|
|
|
GLPtr<GrGLStencilFillPathInstancedProc> fStencilFillPathInstanced;
|
|
|
|
GLPtr<GrGLStencilStrokePathInstancedProc> fStencilStrokePathInstanced;
|
|
|
|
GLPtr<GrGLPathCoverDepthFuncProc> fPathCoverDepthFunc;
|
|
|
|
GLPtr<GrGLPathColorGenProc> fPathColorGen;
|
|
|
|
GLPtr<GrGLPathTexGenProc> fPathTexGen;
|
|
|
|
GLPtr<GrGLPathFogGenProc> fPathFogGen;
|
|
|
|
GLPtr<GrGLCoverFillPathProc> fCoverFillPath;
|
|
|
|
GLPtr<GrGLCoverStrokePathProc> fCoverStrokePath;
|
|
|
|
GLPtr<GrGLCoverFillPathInstancedProc> fCoverFillPathInstanced;
|
|
|
|
GLPtr<GrGLCoverStrokePathInstancedProc> fCoverStrokePathInstanced;
|
|
|
|
GLPtr<GrGLGetPathParameterivProc> fGetPathParameteriv;
|
|
|
|
GLPtr<GrGLGetPathParameterfvProc> fGetPathParameterfv;
|
|
|
|
GLPtr<GrGLGetPathCommandsProc> fGetPathCommands;
|
|
|
|
GLPtr<GrGLGetPathCoordsProc> fGetPathCoords;
|
|
|
|
GLPtr<GrGLGetPathDashArrayProc> fGetPathDashArray;
|
|
|
|
GLPtr<GrGLGetPathMetricsProc> fGetPathMetrics;
|
|
|
|
GLPtr<GrGLGetPathMetricRangeProc> fGetPathMetricRange;
|
|
|
|
GLPtr<GrGLGetPathSpacingProc> fGetPathSpacing;
|
|
|
|
GLPtr<GrGLGetPathColorGenivProc> fGetPathColorGeniv;
|
|
|
|
GLPtr<GrGLGetPathColorGenfvProc> fGetPathColorGenfv;
|
|
|
|
GLPtr<GrGLGetPathTexGenivProc> fGetPathTexGeniv;
|
|
|
|
GLPtr<GrGLGetPathTexGenfvProc> fGetPathTexGenfv;
|
|
|
|
GLPtr<GrGLIsPointInFillPathProc> fIsPointInFillPath;
|
|
|
|
GLPtr<GrGLIsPointInStrokePathProc> fIsPointInStrokePath;
|
|
|
|
GLPtr<GrGLGetPathLengthProc> fGetPathLength;
|
|
|
|
GLPtr<GrGLPointAlongPathProc> fPointAlongPath;
|
|
|
|
|
2011-09-01 13:28:16 +00:00
|
|
|
// Per-GL func callback
|
|
|
|
#if GR_GL_PER_GL_FUNC_CALLBACK
|
|
|
|
GrGLInterfaceCallbackProc fCallback;
|
|
|
|
GrGLInterfaceCallbackData fCallbackData;
|
|
|
|
#endif
|
|
|
|
|
2011-05-04 12:35:39 +00:00
|
|
|
};
|
2011-03-14 21:23:01 +00:00
|
|
|
|
|
|
|
#endif
|