#include "libANGLE/renderer/gl/FunctionsGL.h"
#include <algorithm>
#include "common/string_utils.h"
#include "libANGLE/AttributeMap.h"
#include "libANGLE/renderer/gl/renderergl_utils.h"
namespace rx
{
static void GetGLVersion(PFNGLGETSTRINGPROC getStringFunction,
gl::Version *outVersion,
StandardGL *outStandard)
{ … }
static std::vector<std::string> GetIndexedExtensions(PFNGLGETINTEGERVPROC getIntegerFunction,
PFNGLGETSTRINGIPROC getStringIFunction)
{ … }
#if defined(ANGLE_ENABLE_OPENGL_NULL)
static GLenum INTERNAL_GL_APIENTRY StubCheckFramebufferStatus(GLenum)
{ … }
static void INTERNAL_GL_APIENTRY StubGetProgramiv(GLuint program, GLenum pname, GLint *params)
{ … }
static void INTERNAL_GL_APIENTRY StubGetShaderiv(GLuint program, GLenum pname, GLint *params)
{ … }
#endif
#define ASSIGN(NAME, FP) …
FunctionsGL::FunctionsGL() : … { … }
FunctionsGL::~FunctionsGL() { … }
void FunctionsGL::initialize(const egl::AttributeMap &displayAttributes)
{ … }
bool FunctionsGL::isAtLeastGL(const gl::Version &glVersion) const
{ … }
bool FunctionsGL::isAtMostGL(const gl::Version &glVersion) const
{ … }
bool FunctionsGL::isAtLeastGLES(const gl::Version &glesVersion) const
{ … }
bool FunctionsGL::isAtMostGLES(const gl::Version &glesVersion) const
{ … }
bool FunctionsGL::hasExtension(const std::string &ext) const
{ … }
bool FunctionsGL::hasGLExtension(const std::string &ext) const
{ … }
bool FunctionsGL::hasGLESExtension(const std::string &ext) const
{ … }
#if defined(ANGLE_ENABLE_OPENGL_NULL)
void FunctionsGL::initializeStubFunctionsForNULLDriver(const std::set<std::string> &extensionSet)
{ … }
#endif
}