Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qopenglfunctions.cpp File Reference

(676e3745f5c7e91d6186cfe236a9fd18dd3def7c)

#include "qopenglfunctions.h"
#include "qopenglextrafunctions.h"
#include "qopenglextensions_p.h"
#include "qdebug.h"
#include <QtGui/private/qopenglcontext_p.h>
#include <QtGui/private/qopengl_p.h>
#include <QtGui/private/qguiapplication_p.h>
#include <qpa/qplatformintegration.h>
#include <qpa/qplatformnativeinterface.h>
Include dependency graph for qopenglfunctions.cpp:

Go to the source code of this file.

Classes

struct  QOpenGLFunctionsPrivateEx

Macros

#define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT   0x8DBA
#define QT_OPENGL_COUNT_FUNCTIONS(ret, name, args)
#define QT_OPENGL_FUNCTION_NAMES(ret, name, args)
#define QT_OPENGL_FLAGS(ret, name, args)
#define QT_OPENGL_IMPLEMENT(CLASS, FUNCTIONS)
#define RESOLVE(name)

Functions

static QOpenGLFunctionsPrivateExqt_gl_functions (QOpenGLContext *context=nullptr)
static int qt_gl_resolve_features ()
static int qt_gl_resolve_extensions ()
static void QOPENGLF_APIENTRY qopenglfSpecialClearDepthf (GLclampf depth)
static void QOPENGLF_APIENTRY qopenglfSpecialDepthRangef (GLclampf zNear, GLclampf zFar)
static void QOPENGLF_APIENTRY qopenglfSpecialGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
static GLboolean QOPENGLF_APIENTRY qopenglfSpecialIsProgram (GLuint program)
static GLboolean QOPENGLF_APIENTRY qopenglfSpecialIsShader (GLuint shader)
static void QOPENGLF_APIENTRY qopenglfSpecialReleaseShaderCompiler ()

Macro Definition Documentation

◆ GL_FRAMEBUFFER_SRGB_CAPABLE_EXT

#define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT   0x8DBA

Definition at line 19 of file qopenglfunctions.cpp.

◆ QT_OPENGL_COUNT_FUNCTIONS

#define QT_OPENGL_COUNT_FUNCTIONS ( ret,
name,
args )
Value:
+1

Definition at line 26 of file qopenglfunctions.cpp.

◆ QT_OPENGL_FLAGS

#define QT_OPENGL_FLAGS ( ret,
name,
args )
Value:
0,

Definition at line 29 of file qopenglfunctions.cpp.

◆ QT_OPENGL_FUNCTION_NAMES

#define QT_OPENGL_FUNCTION_NAMES ( ret,
name,
args )
Value:
"gl"#name"\0"
EGLImageKHR EGLint * name

Definition at line 27 of file qopenglfunctions.cpp.

◆ QT_OPENGL_IMPLEMENT

#define QT_OPENGL_IMPLEMENT ( CLASS,
FUNCTIONS )
Value:
void CLASS::init(QOpenGLContext *context) \
{ \
const char *names = FUNCTIONS(QT_OPENGL_FUNCTION_NAMES); \
const char *name = names; \
for (int i = 0; i < FUNCTIONS(QT_OPENGL_COUNT_FUNCTIONS); ++i) { \
functions[i] = QT_PREPEND_NAMESPACE(getProcAddress(context, name)); \
name += strlen(name) + 1; \
} \
}
\inmodule QtGui
static const QString context()
Definition java.cpp:398
GLuint GLuint * names
const void * getProcAddress
#define QT_OPENGL_COUNT_FUNCTIONS(ret, name, args)
#define QT_OPENGL_FUNCTION_NAMES(ret, name, args)

Definition at line 31 of file qopenglfunctions.cpp.

◆ RESOLVE

#define RESOLVE ( name)
Value:
static const QQmlJSScope * resolve(const QQmlJSScope *current, const QStringList &names)

Definition at line 2115 of file qopenglfunctions.cpp.

Function Documentation

◆ qopenglfSpecialClearDepthf()

void QOPENGLF_APIENTRY qopenglfSpecialClearDepthf ( GLclampf depth)
static

Definition at line 2121 of file qopenglfunctions.cpp.

◆ qopenglfSpecialDepthRangef()

void QOPENGLF_APIENTRY qopenglfSpecialDepthRangef ( GLclampf zNear,
GLclampf zFar )
static

Definition at line 2128 of file qopenglfunctions.cpp.

◆ qopenglfSpecialGetShaderPrecisionFormat()

void QOPENGLF_APIENTRY qopenglfSpecialGetShaderPrecisionFormat ( GLenum shadertype,
GLenum precisiontype,
GLint * range,
GLint * precision )
static

Definition at line 2135 of file qopenglfunctions.cpp.

◆ qopenglfSpecialIsProgram()

GLboolean QOPENGLF_APIENTRY qopenglfSpecialIsProgram ( GLuint program)
static

Definition at line 2142 of file qopenglfunctions.cpp.

◆ qopenglfSpecialIsShader()

GLboolean QOPENGLF_APIENTRY qopenglfSpecialIsShader ( GLuint shader)
static

Definition at line 2147 of file qopenglfunctions.cpp.

◆ qopenglfSpecialReleaseShaderCompiler()

void QOPENGLF_APIENTRY qopenglfSpecialReleaseShaderCompiler ( )
static

Definition at line 2152 of file qopenglfunctions.cpp.

◆ qt_gl_functions()

QOpenGLFunctionsPrivateEx * qt_gl_functions ( QOpenGLContext * context = nullptr)
static

Definition at line 151 of file qopenglfunctions.cpp.

◆ qt_gl_resolve_extensions()

int qt_gl_resolve_extensions ( )
static

Definition at line 316 of file qopenglfunctions.cpp.

◆ qt_gl_resolve_features()

int qt_gl_resolve_features ( )
static

Definition at line 210 of file qopenglfunctions.cpp.