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

(20b07bfa305153b8d828e133bb7dda838c2166c6)

#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 2109 of file qopenglfunctions.cpp.

Function Documentation

◆ qopenglfSpecialClearDepthf()

static void QOPENGLF_APIENTRY qopenglfSpecialClearDepthf ( GLclampf depth)
static

Definition at line 2115 of file qopenglfunctions.cpp.

◆ qopenglfSpecialDepthRangef()

static void QOPENGLF_APIENTRY qopenglfSpecialDepthRangef ( GLclampf zNear,
GLclampf zFar )
static

Definition at line 2122 of file qopenglfunctions.cpp.

◆ qopenglfSpecialGetShaderPrecisionFormat()

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

Definition at line 2129 of file qopenglfunctions.cpp.

◆ qopenglfSpecialIsProgram()

static GLboolean QOPENGLF_APIENTRY qopenglfSpecialIsProgram ( GLuint program)
static

Definition at line 2136 of file qopenglfunctions.cpp.

◆ qopenglfSpecialIsShader()

static GLboolean QOPENGLF_APIENTRY qopenglfSpecialIsShader ( GLuint shader)
static

Definition at line 2141 of file qopenglfunctions.cpp.

◆ qopenglfSpecialReleaseShaderCompiler()

static void QOPENGLF_APIENTRY qopenglfSpecialReleaseShaderCompiler ( )
static

Definition at line 2146 of file qopenglfunctions.cpp.

◆ qt_gl_functions()

static QOpenGLFunctionsPrivateEx * qt_gl_functions ( QOpenGLContext * context = nullptr)
static

Definition at line 151 of file qopenglfunctions.cpp.

◆ qt_gl_resolve_extensions()

static int qt_gl_resolve_extensions ( )
static

Definition at line 310 of file qopenglfunctions.cpp.

◆ qt_gl_resolve_features()

static int qt_gl_resolve_features ( )
static

Definition at line 210 of file qopenglfunctions.cpp.