Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/opengl/qopengltexturehelper.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||
2 | - | |||||||||||||
3 | - | |||||||||||||
4 | - | |||||||||||||
5 | QOpenGLTextureHelper::QOpenGLTextureHelper(QOpenGLContext *context) | - | ||||||||||||
6 | { | - | ||||||||||||
7 | - | |||||||||||||
8 | - | |||||||||||||
9 | - | |||||||||||||
10 | bool allowDSA = true; | - | ||||||||||||
11 | const char *renderer = reinterpret_cast<const char *>(context->functions()->glGetString(0x1F01)); | - | ||||||||||||
12 | - | |||||||||||||
13 | if (renderer
| 0 | ||||||||||||
14 | allowDSA = false; never executed: allowDSA = false; | 0 | ||||||||||||
15 | - | |||||||||||||
16 | if (allowDSA
| 0 | ||||||||||||
17 | && context->hasExtension(([]() -> QByteArray { enum { Size = sizeof("GL_EXT_direct_state_access") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "GL_EXT_direct_state_access" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return ba; }()))
| 0 | ||||||||||||
18 | TextureParameteriEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLenum , GLint )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureParameteriEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureParameteriEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
19 | TextureParameterivEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLenum , const GLint *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureParameterivEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureParameterivEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
20 | TextureParameterfEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLenum , GLfloat )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureParameterfEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureParameterfEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
21 | TextureParameterfvEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLenum , const GLfloat *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureParameterfvEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureParameterfvEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
22 | GenerateTextureMipmapEXT = reinterpret_cast<void ( *)(GLuint , GLenum )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glGenerateTextureMipmapEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glGenerateTextureMipmapEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
23 | TextureStorage3DEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLsizei , GLenum , GLsizei , GLsizei , GLsizei )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureStorage3DEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureStorage3DEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
24 | TextureStorage2DEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLsizei , GLenum , GLsizei , GLsizei )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureStorage2DEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureStorage2DEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
25 | TextureStorage1DEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLsizei , GLenum , GLsizei )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureStorage1DEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureStorage1DEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
26 | TextureStorage3DMultisampleEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLsizei , GLenum , GLsizei , GLsizei , GLsizei , GLboolean )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureStorage3DMultisampleEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureStorage3DMultisampleEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
27 | TextureStorage2DMultisampleEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLsizei , GLenum , GLsizei , GLsizei , GLboolean )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureStorage2DMultisampleEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureStorage2DMultisampleEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
28 | TextureImage3DEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLint , GLenum , GLsizei , GLsizei , GLsizei , GLint , GLenum , GLenum , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureImage3DEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureImage3DEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
29 | TextureImage2DEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLint , GLenum , GLsizei , GLsizei , GLint , GLenum , GLenum , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureImage2DEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureImage2DEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
30 | TextureImage1DEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLint , GLenum , GLsizei , GLint , GLenum , GLenum , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureImage1DEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureImage1DEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
31 | TextureSubImage3DEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLint , GLint , GLint , GLint , GLsizei , GLsizei , GLsizei , GLenum , GLenum , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureSubImage3DEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureSubImage3DEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
32 | TextureSubImage2DEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLint , GLint , GLint , GLsizei , GLsizei , GLenum , GLenum , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureSubImage2DEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureSubImage2DEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
33 | TextureSubImage1DEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLint , GLint , GLsizei , GLenum , GLenum , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureSubImage1DEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureSubImage1DEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
34 | CompressedTextureSubImage1DEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLint , GLint , GLsizei , GLenum , GLsizei , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glCompressedTextureSubImage1DEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glCompressedTextureSubImage1DEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
35 | CompressedTextureSubImage2DEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLint , GLint , GLint , GLsizei , GLsizei , GLenum , GLsizei , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glCompressedTextureSubImage2DEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glCompressedTextureSubImage2DEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
36 | CompressedTextureSubImage3DEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLint , GLint , GLint , GLint , GLsizei , GLsizei , GLsizei , GLenum , GLsizei , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glCompressedTextureSubImage3DEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glCompressedTextureSubImage3DEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
37 | CompressedTextureImage1DEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLint , GLenum , GLsizei , GLint , GLsizei , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glCompressedTextureImage1DEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glCompressedTextureImage1DEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
38 | CompressedTextureImage2DEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLint , GLenum , GLsizei , GLsizei , GLint , GLsizei , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glCompressedTextureImage2DEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glCompressedTextureImage2DEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
39 | CompressedTextureImage3DEXT = reinterpret_cast<void ( *)(GLuint , GLenum , GLint , GLenum , GLsizei , GLsizei , GLsizei , GLint , GLsizei , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glCompressedTextureImage3DEXT") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glCompressedTextureImage3DEXT" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
40 | - | |||||||||||||
41 | - | |||||||||||||
42 | TextureParameteri = &QOpenGLTextureHelper::dsa_TextureParameteri; | - | ||||||||||||
43 | TextureParameteriv = &QOpenGLTextureHelper::dsa_TextureParameteriv; | - | ||||||||||||
44 | TextureParameterf = &QOpenGLTextureHelper::dsa_TextureParameterf; | - | ||||||||||||
45 | TextureParameterfv = &QOpenGLTextureHelper::dsa_TextureParameterfv; | - | ||||||||||||
46 | GenerateTextureMipmap = &QOpenGLTextureHelper::dsa_GenerateTextureMipmap; | - | ||||||||||||
47 | TextureStorage3D = &QOpenGLTextureHelper::dsa_TextureStorage3D; | - | ||||||||||||
48 | TextureStorage2D = &QOpenGLTextureHelper::dsa_TextureStorage2D; | - | ||||||||||||
49 | TextureStorage1D = &QOpenGLTextureHelper::dsa_TextureStorage1D; | - | ||||||||||||
50 | TextureStorage3DMultisample = &QOpenGLTextureHelper::dsa_TextureStorage3DMultisample; | - | ||||||||||||
51 | TextureStorage2DMultisample = &QOpenGLTextureHelper::dsa_TextureStorage2DMultisample; | - | ||||||||||||
52 | TextureImage3D = &QOpenGLTextureHelper::dsa_TextureImage3D; | - | ||||||||||||
53 | TextureImage2D = &QOpenGLTextureHelper::dsa_TextureImage2D; | - | ||||||||||||
54 | TextureImage1D = &QOpenGLTextureHelper::dsa_TextureImage1D; | - | ||||||||||||
55 | TextureSubImage3D = &QOpenGLTextureHelper::dsa_TextureSubImage3D; | - | ||||||||||||
56 | TextureSubImage2D = &QOpenGLTextureHelper::dsa_TextureSubImage2D; | - | ||||||||||||
57 | TextureSubImage1D = &QOpenGLTextureHelper::dsa_TextureSubImage1D; | - | ||||||||||||
58 | CompressedTextureSubImage1D = &QOpenGLTextureHelper::dsa_CompressedTextureSubImage1D; | - | ||||||||||||
59 | CompressedTextureSubImage2D = &QOpenGLTextureHelper::dsa_CompressedTextureSubImage2D; | - | ||||||||||||
60 | CompressedTextureSubImage3D = &QOpenGLTextureHelper::dsa_CompressedTextureSubImage3D; | - | ||||||||||||
61 | CompressedTextureImage1D = &QOpenGLTextureHelper::dsa_CompressedTextureImage1D; | - | ||||||||||||
62 | CompressedTextureImage2D = &QOpenGLTextureHelper::dsa_CompressedTextureImage2D; | - | ||||||||||||
63 | CompressedTextureImage3D = &QOpenGLTextureHelper::dsa_CompressedTextureImage3D; | - | ||||||||||||
64 | } never executed: else {end of block | 0 | ||||||||||||
65 | - | |||||||||||||
66 | TextureParameteri = &QOpenGLTextureHelper::qt_TextureParameteri; | - | ||||||||||||
67 | TextureParameteriv = &QOpenGLTextureHelper::qt_TextureParameteriv; | - | ||||||||||||
68 | TextureParameterf = &QOpenGLTextureHelper::qt_TextureParameterf; | - | ||||||||||||
69 | TextureParameterfv = &QOpenGLTextureHelper::qt_TextureParameterfv; | - | ||||||||||||
70 | GenerateTextureMipmap = &QOpenGLTextureHelper::qt_GenerateTextureMipmap; | - | ||||||||||||
71 | TextureStorage3D = &QOpenGLTextureHelper::qt_TextureStorage3D; | - | ||||||||||||
72 | TextureStorage2D = &QOpenGLTextureHelper::qt_TextureStorage2D; | - | ||||||||||||
73 | TextureStorage1D = &QOpenGLTextureHelper::qt_TextureStorage1D; | - | ||||||||||||
74 | TextureStorage3DMultisample = &QOpenGLTextureHelper::qt_TextureStorage3DMultisample; | - | ||||||||||||
75 | TextureStorage2DMultisample = &QOpenGLTextureHelper::qt_TextureStorage2DMultisample; | - | ||||||||||||
76 | TextureImage3D = &QOpenGLTextureHelper::qt_TextureImage3D; | - | ||||||||||||
77 | TextureImage2D = &QOpenGLTextureHelper::qt_TextureImage2D; | - | ||||||||||||
78 | TextureImage1D = &QOpenGLTextureHelper::qt_TextureImage1D; | - | ||||||||||||
79 | TextureSubImage3D = &QOpenGLTextureHelper::qt_TextureSubImage3D; | - | ||||||||||||
80 | TextureSubImage2D = &QOpenGLTextureHelper::qt_TextureSubImage2D; | - | ||||||||||||
81 | TextureSubImage1D = &QOpenGLTextureHelper::qt_TextureSubImage1D; | - | ||||||||||||
82 | CompressedTextureSubImage1D = &QOpenGLTextureHelper::qt_CompressedTextureSubImage1D; | - | ||||||||||||
83 | CompressedTextureSubImage2D = &QOpenGLTextureHelper::qt_CompressedTextureSubImage2D; | - | ||||||||||||
84 | CompressedTextureSubImage3D = &QOpenGLTextureHelper::qt_CompressedTextureSubImage3D; | - | ||||||||||||
85 | CompressedTextureImage1D = &QOpenGLTextureHelper::qt_CompressedTextureImage1D; | - | ||||||||||||
86 | CompressedTextureImage2D = &QOpenGLTextureHelper::qt_CompressedTextureImage2D; | - | ||||||||||||
87 | CompressedTextureImage3D = &QOpenGLTextureHelper::qt_CompressedTextureImage3D; | - | ||||||||||||
88 | } never executed: end of block | 0 | ||||||||||||
89 | - | |||||||||||||
90 | - | |||||||||||||
91 | if (!context->isOpenGLES()
| 0 | ||||||||||||
92 | && context->hasExtension(([]() -> QByteArray { enum { Size = sizeof("GL_NV_texture_multisample") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "GL_NV_texture_multisample" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return ba; }()))
| 0 | ||||||||||||
93 | TextureImage3DMultisampleNV = reinterpret_cast<void ( *)(GLuint , GLenum , GLsizei , GLint , GLsizei , GLsizei , GLsizei , GLboolean )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureImage3DMultisampleNV") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureImage3DMultisampleNV" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
94 | TextureImage2DMultisampleNV = reinterpret_cast<void ( *)(GLuint , GLenum , GLsizei , GLint , GLsizei , GLsizei , GLboolean )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureImage2DMultisampleNV") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureImage2DMultisampleNV" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
95 | - | |||||||||||||
96 | TextureImage3DMultisample = &QOpenGLTextureHelper::dsa_TextureImage3DMultisample; | - | ||||||||||||
97 | TextureImage2DMultisample = &QOpenGLTextureHelper::dsa_TextureImage2DMultisample; | - | ||||||||||||
98 | } never executed: else {end of block | 0 | ||||||||||||
99 | TextureImage3DMultisample = &QOpenGLTextureHelper::qt_TextureImage3DMultisample; | - | ||||||||||||
100 | TextureImage2DMultisample = &QOpenGLTextureHelper::qt_TextureImage2DMultisample; | - | ||||||||||||
101 | } never executed: end of block | 0 | ||||||||||||
102 | GetIntegerv = reinterpret_cast<void ( *)(GLenum , GLint *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glGetIntegerv") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glGetIntegerv" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
103 | GetBooleanv = reinterpret_cast<void ( *)(GLenum , GLboolean *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glGetBooleanv") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glGetBooleanv" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
104 | PixelStorei = reinterpret_cast<void ( *)(GLenum , GLint )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glPixelStorei") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glPixelStorei" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
105 | GetTexLevelParameteriv = reinterpret_cast<void ( *)(GLenum , GLint , GLenum , GLint *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glGetTexLevelParameteriv") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glGetTexLevelParameteriv" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
106 | GetTexLevelParameterfv = reinterpret_cast<void ( *)(GLenum , GLint , GLenum , GLfloat *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glGetTexLevelParameterfv") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glGetTexLevelParameterfv" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
107 | GetTexParameteriv = reinterpret_cast<void ( *)(GLenum , GLenum , GLint *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glGetTexParameteriv") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glGetTexParameteriv" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
108 | GetTexParameterfv = reinterpret_cast<void ( *)(GLenum , GLenum , GLfloat *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glGetTexParameterfv") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glGetTexParameterfv" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
109 | GetTexImage = reinterpret_cast<void ( *)(GLenum , GLint , GLenum , GLenum , GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glGetTexImage") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glGetTexImage" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
110 | TexImage2D = reinterpret_cast<void ( *)(GLenum , GLint , GLint , GLsizei , GLsizei , GLint , GLenum , GLenum , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexImage2D") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexImage2D" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
111 | TexImage1D = reinterpret_cast<void ( *)(GLenum , GLint , GLint , GLsizei , GLint , GLenum , GLenum , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexImage1D") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexImage1D" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
112 | TexParameteriv = reinterpret_cast<void ( *)(GLenum , GLenum , const GLint *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexParameteriv") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexParameteriv" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
113 | TexParameteri = reinterpret_cast<void ( *)(GLenum , GLenum , GLint )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexParameteri") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexParameteri" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
114 | TexParameterfv = reinterpret_cast<void ( *)(GLenum , GLenum , const GLfloat *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexParameterfv") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexParameterfv" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
115 | TexParameterf = reinterpret_cast<void ( *)(GLenum , GLenum , GLfloat )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexParameterf") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexParameterf" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
116 | - | |||||||||||||
117 | - | |||||||||||||
118 | GenTextures = reinterpret_cast<void ( *)(GLsizei , GLuint *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glGenTextures") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glGenTextures" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
119 | DeleteTextures = reinterpret_cast<void ( *)(GLsizei , const GLuint *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glDeleteTextures") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glDeleteTextures" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
120 | BindTexture = reinterpret_cast<void ( *)(GLenum , GLuint )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glBindTexture") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glBindTexture" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
121 | TexSubImage2D = reinterpret_cast<void ( *)(GLenum , GLint , GLint , GLint , GLsizei , GLsizei , GLenum , GLenum , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexSubImage2D") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexSubImage2D" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
122 | TexSubImage1D = reinterpret_cast<void ( *)(GLenum , GLint , GLint , GLsizei , GLenum , GLenum , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexSubImage1D") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexSubImage1D" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
123 | - | |||||||||||||
124 | - | |||||||||||||
125 | if (context->isOpenGLES()
| 0 | ||||||||||||
126 | TexImage3D = reinterpret_cast<void ( *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid*)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexImage3DOES") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexImage3DOES" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
127 | TexSubImage3D = reinterpret_cast<void ( *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid*)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexSubImage3DOES") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexSubImage3DOES" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
128 | CompressedTexImage3D = reinterpret_cast<void ( *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid*)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glCompressedTexImage3DOES") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glCompressedTexImage3DOES" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
129 | CompressedTexSubImage3D = reinterpret_cast<void ( *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid*)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glCompressedTexSubImage3DOES") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glCompressedTexSubImage3DOES" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
130 | } never executed: else {end of block | 0 | ||||||||||||
131 | QOpenGLContext *ctx = QOpenGLContext::currentContext(); | - | ||||||||||||
132 | if (ctx->isOpenGLES()
| 0 | ||||||||||||
133 | - | |||||||||||||
134 | QOpenGLES3Helper *es3 = static_cast<QOpenGLExtensions *>(ctx->functions())->gles3Helper(); | - | ||||||||||||
135 | TexImage3D = es3->TexImage3D; | - | ||||||||||||
136 | TexSubImage3D = es3->TexSubImage3D; | - | ||||||||||||
137 | CompressedTexImage3D = es3->CompressedTexImage3D; | - | ||||||||||||
138 | CompressedTexSubImage3D = es3->CompressedTexSubImage3D; | - | ||||||||||||
139 | } never executed: else {end of block | 0 | ||||||||||||
140 | - | |||||||||||||
141 | TexImage3D = reinterpret_cast<void ( *)(GLenum , GLint , GLint , GLsizei , GLsizei , GLsizei , GLint , GLenum , GLenum , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexImage3D") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexImage3D" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
142 | TexSubImage3D = reinterpret_cast<void ( *)(GLenum , GLint , GLint , GLint , GLint , GLsizei , GLsizei , GLsizei , GLenum , GLenum , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexSubImage3D") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexSubImage3D" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
143 | - | |||||||||||||
144 | - | |||||||||||||
145 | CompressedTexImage3D = reinterpret_cast<void ( *)(GLenum , GLint , GLenum , GLsizei , GLsizei , GLsizei , GLint , GLsizei , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glCompressedTexImage3D") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glCompressedTexImage3D" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
146 | CompressedTexSubImage3D = reinterpret_cast<void ( *)(GLenum , GLint , GLint , GLint , GLint , GLsizei , GLsizei , GLsizei , GLenum , GLsizei , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glCompressedTexSubImage3D") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glCompressedTexSubImage3D" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
147 | } never executed: end of block | 0 | ||||||||||||
148 | } | - | ||||||||||||
149 | - | |||||||||||||
150 | - | |||||||||||||
151 | - | |||||||||||||
152 | GetCompressedTexImage = reinterpret_cast<void ( *)(GLenum , GLint , GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glGetCompressedTexImage") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glGetCompressedTexImage" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
153 | CompressedTexSubImage1D = reinterpret_cast<void ( *)(GLenum , GLint , GLint , GLsizei , GLenum , GLsizei , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glCompressedTexSubImage1D") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glCompressedTexSubImage1D" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
154 | CompressedTexSubImage2D = reinterpret_cast<void ( *)(GLenum , GLint , GLint , GLint , GLsizei , GLsizei , GLenum , GLsizei , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glCompressedTexSubImage2D") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glCompressedTexSubImage2D" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
155 | CompressedTexImage1D = reinterpret_cast<void ( *)(GLenum , GLint , GLenum , GLsizei , GLint , GLsizei , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glCompressedTexImage1D") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glCompressedTexImage1D" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
156 | CompressedTexImage2D = reinterpret_cast<void ( *)(GLenum , GLint , GLenum , GLsizei , GLsizei , GLint , GLsizei , const GLvoid *)>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glCompressedTexImage2D") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glCompressedTexImage2D" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
157 | ActiveTexture = reinterpret_cast<void ( *)(GLenum )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glActiveTexture") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glActiveTexture" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
158 | - | |||||||||||||
159 | - | |||||||||||||
160 | GenerateMipmap = reinterpret_cast<void ( *)(GLenum )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glGenerateMipmap") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glGenerateMipmap" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
161 | - | |||||||||||||
162 | - | |||||||||||||
163 | TexImage3DMultisample = reinterpret_cast<void ( *)(GLenum , GLsizei , GLint , GLsizei , GLsizei , GLsizei , GLboolean )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexImage3DMultisample") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexImage3DMultisample" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
164 | TexImage2DMultisample = reinterpret_cast<void ( *)(GLenum , GLsizei , GLint , GLsizei , GLsizei , GLboolean )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexImage2DMultisample") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexImage2DMultisample" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
165 | - | |||||||||||||
166 | - | |||||||||||||
167 | TexStorage3D = reinterpret_cast<void ( *)(GLenum , GLsizei , GLenum , GLsizei , GLsizei , GLsizei )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexStorage3D") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexStorage3D" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
168 | TexStorage2D = reinterpret_cast<void ( *)(GLenum , GLsizei , GLenum , GLsizei , GLsizei )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexStorage2D") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexStorage2D" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
169 | TexStorage1D = reinterpret_cast<void ( *)(GLenum , GLsizei , GLenum , GLsizei )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexStorage1D") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexStorage1D" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
170 | - | |||||||||||||
171 | - | |||||||||||||
172 | TexStorage3DMultisample = reinterpret_cast<void ( *)(GLenum , GLsizei , GLenum , GLsizei , GLsizei , GLsizei , GLboolean )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexStorage3DMultisample") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexStorage3DMultisample" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
173 | TexStorage2DMultisample = reinterpret_cast<void ( *)(GLenum , GLsizei , GLenum , GLsizei , GLsizei , GLboolean )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexStorage2DMultisample") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexStorage2DMultisample" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
174 | TexBufferRange = reinterpret_cast<void ( *)(GLenum , GLenum , GLuint , GLintptr , GLsizeiptr )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTexBufferRange") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTexBufferRange" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
175 | TextureView = reinterpret_cast<void ( *)(GLuint , GLenum , GLuint , GLenum , GLuint , GLuint , GLuint , GLuint )>(context->getProcAddress(([]() -> QByteArray { enum { Size = sizeof("glTextureView") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "glTextureView" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return never executed: ba;return ba; never executed: }())));return ba; | 0 | ||||||||||||
176 | - | |||||||||||||
177 | } never executed: end of block | 0 | ||||||||||||
178 | - | |||||||||||||
179 | void QOpenGLTextureHelper::dsa_TextureParameteri(GLuint texture, GLenum target, GLenum bindingTarget, GLenum pname, GLint param) | - | ||||||||||||
180 | { | - | ||||||||||||
181 | (void)bindingTarget;; | - | ||||||||||||
182 | TextureParameteriEXT(texture, target, pname, param); | - | ||||||||||||
183 | } never executed: end of block | 0 | ||||||||||||
184 | - | |||||||||||||
185 | void QOpenGLTextureHelper::dsa_TextureParameteriv(GLuint texture, GLenum target, GLenum bindingTarget, GLenum pname, const GLint *params) | - | ||||||||||||
186 | { | - | ||||||||||||
187 | (void)bindingTarget;; | - | ||||||||||||
188 | TextureParameterivEXT(texture, target, pname, params); | - | ||||||||||||
189 | } never executed: end of block | 0 | ||||||||||||
190 | - | |||||||||||||
191 | void QOpenGLTextureHelper::dsa_TextureParameterf(GLuint texture, GLenum target, GLenum bindingTarget, GLenum pname, GLfloat param) | - | ||||||||||||
192 | { | - | ||||||||||||
193 | (void)bindingTarget;; | - | ||||||||||||
194 | TextureParameterfEXT(texture, target, pname, param); | - | ||||||||||||
195 | } never executed: end of block | 0 | ||||||||||||
196 | - | |||||||||||||
197 | void QOpenGLTextureHelper::dsa_TextureParameterfv(GLuint texture, GLenum target, GLenum bindingTarget, GLenum pname, const GLfloat *params) | - | ||||||||||||
198 | { | - | ||||||||||||
199 | (void)bindingTarget;; | - | ||||||||||||
200 | TextureParameterfvEXT(texture, target, pname, params); | - | ||||||||||||
201 | } never executed: end of block | 0 | ||||||||||||
202 | - | |||||||||||||
203 | void QOpenGLTextureHelper::dsa_GenerateTextureMipmap(GLuint texture, GLenum target, GLenum bindingTarget) | - | ||||||||||||
204 | { | - | ||||||||||||
205 | (void)bindingTarget;; | - | ||||||||||||
206 | GenerateTextureMipmapEXT(texture, target); | - | ||||||||||||
207 | } never executed: end of block | 0 | ||||||||||||
208 | - | |||||||||||||
209 | void QOpenGLTextureHelper::dsa_TextureStorage3D(GLuint texture, GLenum target, GLenum bindingTarget, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth) | - | ||||||||||||
210 | { | - | ||||||||||||
211 | (void)bindingTarget;; | - | ||||||||||||
212 | TextureStorage3DEXT(texture, target, levels, internalFormat, width, height, depth); | - | ||||||||||||
213 | } never executed: end of block | 0 | ||||||||||||
214 | - | |||||||||||||
215 | void QOpenGLTextureHelper::dsa_TextureStorage2D(GLuint texture, GLenum target, GLenum bindingTarget, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height) | - | ||||||||||||
216 | { | - | ||||||||||||
217 | (void)bindingTarget;; | - | ||||||||||||
218 | TextureStorage2DEXT(texture, target, levels, internalFormat, width, height); | - | ||||||||||||
219 | } never executed: end of block | 0 | ||||||||||||
220 | - | |||||||||||||
221 | void QOpenGLTextureHelper::dsa_TextureStorage1D(GLuint texture, GLenum target, GLenum bindingTarget, GLsizei levels, GLenum internalFormat, GLsizei width) | - | ||||||||||||
222 | { | - | ||||||||||||
223 | (void)bindingTarget;; | - | ||||||||||||
224 | TextureStorage1DEXT(texture, target, levels, internalFormat, width); | - | ||||||||||||
225 | } never executed: end of block | 0 | ||||||||||||
226 | - | |||||||||||||
227 | void QOpenGLTextureHelper::dsa_TextureStorage3DMultisample(GLuint texture, GLenum target, GLenum bindingTarget, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations) | - | ||||||||||||
228 | { | - | ||||||||||||
229 | (void)bindingTarget;; | - | ||||||||||||
230 | TextureStorage3DMultisampleEXT(texture, target, samples, internalFormat, width, height, depth, fixedSampleLocations); | - | ||||||||||||
231 | } never executed: end of block | 0 | ||||||||||||
232 | - | |||||||||||||
233 | void QOpenGLTextureHelper::dsa_TextureStorage2DMultisample(GLuint texture, GLenum target, GLenum bindingTarget, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations) | - | ||||||||||||
234 | { | - | ||||||||||||
235 | (void)bindingTarget;; | - | ||||||||||||
236 | TextureStorage2DMultisampleEXT(texture, target, samples, internalFormat, width, height, fixedSampleLocations); | - | ||||||||||||
237 | } never executed: end of block | 0 | ||||||||||||
238 | - | |||||||||||||
239 | void QOpenGLTextureHelper::dsa_TextureImage3D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels) | - | ||||||||||||
240 | { | - | ||||||||||||
241 | (void)bindingTarget;; | - | ||||||||||||
242 | TextureImage3DEXT(texture, target, level, internalFormat, width, height, depth, border, format, type, pixels); | - | ||||||||||||
243 | } never executed: end of block | 0 | ||||||||||||
244 | - | |||||||||||||
245 | void QOpenGLTextureHelper::dsa_TextureImage2D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels) | - | ||||||||||||
246 | { | - | ||||||||||||
247 | (void)bindingTarget;; | - | ||||||||||||
248 | TextureImage2DEXT(texture, target, level, internalFormat, width, height, border, format, type, pixels); | - | ||||||||||||
249 | } never executed: end of block | 0 | ||||||||||||
250 | - | |||||||||||||
251 | void QOpenGLTextureHelper::dsa_TextureImage1D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels) | - | ||||||||||||
252 | { | - | ||||||||||||
253 | (void)bindingTarget;; | - | ||||||||||||
254 | TextureImage1DEXT(texture, target, level, internalFormat, width, border, format, type, pixels); | - | ||||||||||||
255 | } never executed: end of block | 0 | ||||||||||||
256 | - | |||||||||||||
257 | void QOpenGLTextureHelper::dsa_TextureSubImage3D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels) | - | ||||||||||||
258 | { | - | ||||||||||||
259 | (void)bindingTarget;; | - | ||||||||||||
260 | TextureSubImage3DEXT(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); | - | ||||||||||||
261 | } never executed: end of block | 0 | ||||||||||||
262 | - | |||||||||||||
263 | void QOpenGLTextureHelper::dsa_TextureSubImage2D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) | - | ||||||||||||
264 | { | - | ||||||||||||
265 | (void)bindingTarget;; | - | ||||||||||||
266 | TextureSubImage2DEXT(texture, target, level, xoffset, yoffset, width, height, format, type, pixels); | - | ||||||||||||
267 | } never executed: end of block | 0 | ||||||||||||
268 | - | |||||||||||||
269 | void QOpenGLTextureHelper::dsa_TextureSubImage1D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels) | - | ||||||||||||
270 | { | - | ||||||||||||
271 | (void)bindingTarget;; | - | ||||||||||||
272 | TextureSubImage1DEXT(texture, target, level, xoffset, width, format, type, pixels); | - | ||||||||||||
273 | } never executed: end of block | 0 | ||||||||||||
274 | - | |||||||||||||
275 | void QOpenGLTextureHelper::dsa_TextureImage3DMultisample(GLuint texture, GLenum target, GLenum bindingTarget, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations) | - | ||||||||||||
276 | { | - | ||||||||||||
277 | (void)bindingTarget;; | - | ||||||||||||
278 | TextureImage3DMultisampleNV(texture, target, samples, internalFormat, width, height, depth, fixedSampleLocations); | - | ||||||||||||
279 | } never executed: end of block | 0 | ||||||||||||
280 | - | |||||||||||||
281 | void QOpenGLTextureHelper::dsa_TextureImage2DMultisample(GLuint texture, GLenum target, GLenum bindingTarget, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations) | - | ||||||||||||
282 | { | - | ||||||||||||
283 | (void)bindingTarget;; | - | ||||||||||||
284 | TextureImage2DMultisampleNV(texture, target, samples, internalFormat, width, height, fixedSampleLocations); | - | ||||||||||||
285 | } never executed: end of block | 0 | ||||||||||||
286 | - | |||||||||||||
287 | void QOpenGLTextureHelper::dsa_CompressedTextureSubImage1D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *bits) | - | ||||||||||||
288 | { | - | ||||||||||||
289 | (void)bindingTarget;; | - | ||||||||||||
290 | CompressedTextureSubImage1DEXT(texture, target, level, xoffset, width, format, imageSize, bits); | - | ||||||||||||
291 | } never executed: end of block | 0 | ||||||||||||
292 | - | |||||||||||||
293 | void QOpenGLTextureHelper::dsa_CompressedTextureSubImage2D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *bits) | - | ||||||||||||
294 | { | - | ||||||||||||
295 | (void)bindingTarget;; | - | ||||||||||||
296 | CompressedTextureSubImage2DEXT(texture, target, level, xoffset, yoffset, width, height, format, imageSize, bits); | - | ||||||||||||
297 | } never executed: end of block | 0 | ||||||||||||
298 | - | |||||||||||||
299 | void QOpenGLTextureHelper::dsa_CompressedTextureSubImage3D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *bits) | - | ||||||||||||
300 | { | - | ||||||||||||
301 | (void)bindingTarget;; | - | ||||||||||||
302 | CompressedTextureSubImage3DEXT(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, bits); | - | ||||||||||||
303 | } never executed: end of block | 0 | ||||||||||||
304 | - | |||||||||||||
305 | void QOpenGLTextureHelper::dsa_CompressedTextureImage1D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *bits) | - | ||||||||||||
306 | { | - | ||||||||||||
307 | (void)bindingTarget;; | - | ||||||||||||
308 | CompressedTextureImage1DEXT(texture, target, level, internalFormat, width, border, imageSize, bits); | - | ||||||||||||
309 | } never executed: end of block | 0 | ||||||||||||
310 | - | |||||||||||||
311 | void QOpenGLTextureHelper::dsa_CompressedTextureImage2D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *bits) | - | ||||||||||||
312 | { | - | ||||||||||||
313 | (void)bindingTarget;; | - | ||||||||||||
314 | CompressedTextureImage2DEXT(texture, target, level, internalFormat, width, height, border, imageSize, bits); | - | ||||||||||||
315 | } never executed: end of block | 0 | ||||||||||||
316 | - | |||||||||||||
317 | void QOpenGLTextureHelper::dsa_CompressedTextureImage3D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *bits) | - | ||||||||||||
318 | { | - | ||||||||||||
319 | (void)bindingTarget;; | - | ||||||||||||
320 | CompressedTextureImage3DEXT(texture, target, level, internalFormat, width, height, depth, border, imageSize, bits); | - | ||||||||||||
321 | } never executed: end of block | 0 | ||||||||||||
322 | - | |||||||||||||
323 | namespace { | - | ||||||||||||
324 | - | |||||||||||||
325 | class TextureBinder | - | ||||||||||||
326 | { | - | ||||||||||||
327 | public: | - | ||||||||||||
328 | TextureBinder(QOpenGLTextureHelper *textureFunctions, GLuint texture, GLenum target, GLenum bindingTarget) | - | ||||||||||||
329 | : m_textureFunctions(textureFunctions) | - | ||||||||||||
330 | { | - | ||||||||||||
331 | - | |||||||||||||
332 | - | |||||||||||||
333 | - | |||||||||||||
334 | switch (target) { | - | ||||||||||||
335 | case never executed: 0x8516:case 0x8516: never executed: case 0x8516: | 0 | ||||||||||||
336 | case never executed: 0x8515:case 0x8515: never executed: case 0x8515: | 0 | ||||||||||||
337 | case never executed: 0x8518:case 0x8518: never executed: case 0x8518: | 0 | ||||||||||||
338 | case never executed: 0x8517:case 0x8517: never executed: case 0x8517: | 0 | ||||||||||||
339 | case never executed: 0x851A:case 0x851A: never executed: case 0x851A: | 0 | ||||||||||||
340 | case never executed: 0x8519:case 0x8519: never executed: case 0x8519: | 0 | ||||||||||||
341 | bindingTarget = 0x8514; | - | ||||||||||||
342 | m_target = 0x8513; | - | ||||||||||||
343 | break; never executed: break; | 0 | ||||||||||||
344 | - | |||||||||||||
345 | default never executed: :default: never executed: default: | 0 | ||||||||||||
346 | m_target = target; | - | ||||||||||||
347 | break; never executed: break; | 0 | ||||||||||||
348 | } | - | ||||||||||||
349 | - | |||||||||||||
350 | m_textureFunctions->glGetIntegerv(bindingTarget, &m_oldTexture); | - | ||||||||||||
351 | m_textureFunctions->glBindTexture(m_target, texture); | - | ||||||||||||
352 | } never executed: end of block | 0 | ||||||||||||
353 | - | |||||||||||||
354 | ~TextureBinder() | - | ||||||||||||
355 | { | - | ||||||||||||
356 | m_textureFunctions->glBindTexture(m_target, m_oldTexture); | - | ||||||||||||
357 | } never executed: end of block | 0 | ||||||||||||
358 | - | |||||||||||||
359 | private: | - | ||||||||||||
360 | QOpenGLTextureHelper *m_textureFunctions; | - | ||||||||||||
361 | GLenum m_target; | - | ||||||||||||
362 | GLint m_oldTexture; | - | ||||||||||||
363 | }; | - | ||||||||||||
364 | - | |||||||||||||
365 | } | - | ||||||||||||
366 | - | |||||||||||||
367 | void QOpenGLTextureHelper::qt_TextureParameteri(GLuint texture, GLenum target, GLenum bindingTarget, GLenum pname, GLint param) | - | ||||||||||||
368 | { | - | ||||||||||||
369 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
370 | glTexParameteri(target, pname, param); | - | ||||||||||||
371 | } never executed: end of block | 0 | ||||||||||||
372 | - | |||||||||||||
373 | void QOpenGLTextureHelper::qt_TextureParameteriv(GLuint texture, GLenum target, GLenum bindingTarget, GLenum pname, const GLint *params) | - | ||||||||||||
374 | { | - | ||||||||||||
375 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
376 | glTexParameteriv(target, pname, params); | - | ||||||||||||
377 | } never executed: end of block | 0 | ||||||||||||
378 | - | |||||||||||||
379 | void QOpenGLTextureHelper::qt_TextureParameterf(GLuint texture, GLenum target, GLenum bindingTarget, GLenum pname, GLfloat param) | - | ||||||||||||
380 | { | - | ||||||||||||
381 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
382 | glTexParameterf(target, pname, param); | - | ||||||||||||
383 | } never executed: end of block | 0 | ||||||||||||
384 | - | |||||||||||||
385 | void QOpenGLTextureHelper::qt_TextureParameterfv(GLuint texture, GLenum target, GLenum bindingTarget, GLenum pname, const GLfloat *params) | - | ||||||||||||
386 | { | - | ||||||||||||
387 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
388 | glTexParameterfv(target, pname, params); | - | ||||||||||||
389 | } never executed: end of block | 0 | ||||||||||||
390 | - | |||||||||||||
391 | void QOpenGLTextureHelper::qt_GenerateTextureMipmap(GLuint texture, GLenum target, GLenum bindingTarget) | - | ||||||||||||
392 | { | - | ||||||||||||
393 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
394 | glGenerateMipmap(target); | - | ||||||||||||
395 | } never executed: end of block | 0 | ||||||||||||
396 | - | |||||||||||||
397 | void QOpenGLTextureHelper::qt_TextureStorage3D(GLuint texture, GLenum target, GLenum bindingTarget, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth) | - | ||||||||||||
398 | { | - | ||||||||||||
399 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
400 | glTexStorage3D(target, levels, internalFormat, width, height, depth); | - | ||||||||||||
401 | } never executed: end of block | 0 | ||||||||||||
402 | - | |||||||||||||
403 | void QOpenGLTextureHelper::qt_TextureStorage2D(GLuint texture, GLenum target, GLenum bindingTarget, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height) | - | ||||||||||||
404 | { | - | ||||||||||||
405 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
406 | glTexStorage2D(target, levels, internalFormat, width, height); | - | ||||||||||||
407 | } never executed: end of block | 0 | ||||||||||||
408 | - | |||||||||||||
409 | void QOpenGLTextureHelper::qt_TextureStorage1D(GLuint texture, GLenum target, GLenum bindingTarget, GLsizei levels, GLenum internalFormat, GLsizei width) | - | ||||||||||||
410 | { | - | ||||||||||||
411 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
412 | glTexStorage1D(target, levels, internalFormat, width); | - | ||||||||||||
413 | } never executed: end of block | 0 | ||||||||||||
414 | - | |||||||||||||
415 | void QOpenGLTextureHelper::qt_TextureStorage3DMultisample(GLuint texture, GLenum target, GLenum bindingTarget, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations) | - | ||||||||||||
416 | { | - | ||||||||||||
417 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
418 | glTexStorage3DMultisample(target, samples, internalFormat, width, height, depth, fixedSampleLocations); | - | ||||||||||||
419 | } never executed: end of block | 0 | ||||||||||||
420 | - | |||||||||||||
421 | void QOpenGLTextureHelper::qt_TextureStorage2DMultisample(GLuint texture, GLenum target, GLenum bindingTarget, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations) | - | ||||||||||||
422 | { | - | ||||||||||||
423 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
424 | glTexStorage2DMultisample(target, samples, internalFormat, width, height, fixedSampleLocations); | - | ||||||||||||
425 | } never executed: end of block | 0 | ||||||||||||
426 | - | |||||||||||||
427 | void QOpenGLTextureHelper::qt_TextureImage3D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels) | - | ||||||||||||
428 | { | - | ||||||||||||
429 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
430 | glTexImage3D(target, level, internalFormat, width, height, depth, border, format, type, pixels); | - | ||||||||||||
431 | } never executed: end of block | 0 | ||||||||||||
432 | - | |||||||||||||
433 | void QOpenGLTextureHelper::qt_TextureImage2D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels) | - | ||||||||||||
434 | { | - | ||||||||||||
435 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
436 | glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels); | - | ||||||||||||
437 | } never executed: end of block | 0 | ||||||||||||
438 | - | |||||||||||||
439 | void QOpenGLTextureHelper::qt_TextureImage1D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels) | - | ||||||||||||
440 | { | - | ||||||||||||
441 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
442 | glTexImage1D(target, level, internalFormat, width, border, format, type, pixels); | - | ||||||||||||
443 | } never executed: end of block | 0 | ||||||||||||
444 | - | |||||||||||||
445 | void QOpenGLTextureHelper::qt_TextureSubImage3D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels) | - | ||||||||||||
446 | { | - | ||||||||||||
447 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
448 | glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); | - | ||||||||||||
449 | } never executed: end of block | 0 | ||||||||||||
450 | - | |||||||||||||
451 | void QOpenGLTextureHelper::qt_TextureSubImage2D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) | - | ||||||||||||
452 | { | - | ||||||||||||
453 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
454 | glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels); | - | ||||||||||||
455 | } never executed: end of block | 0 | ||||||||||||
456 | - | |||||||||||||
457 | void QOpenGLTextureHelper::qt_TextureSubImage1D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels) | - | ||||||||||||
458 | { | - | ||||||||||||
459 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
460 | glTexSubImage1D(target, level, xoffset, width, format, type, pixels); | - | ||||||||||||
461 | } never executed: end of block | 0 | ||||||||||||
462 | - | |||||||||||||
463 | void QOpenGLTextureHelper::qt_TextureImage3DMultisample(GLuint texture, GLenum target, GLenum bindingTarget, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations) | - | ||||||||||||
464 | { | - | ||||||||||||
465 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
466 | glTexImage3DMultisample(target, samples, internalFormat, width, height, depth, fixedSampleLocations); | - | ||||||||||||
467 | } never executed: end of block | 0 | ||||||||||||
468 | - | |||||||||||||
469 | void QOpenGLTextureHelper::qt_TextureImage2DMultisample(GLuint texture, GLenum target, GLenum bindingTarget, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations) | - | ||||||||||||
470 | { | - | ||||||||||||
471 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
472 | glTexImage2DMultisample(target, samples, internalFormat, width, height, fixedSampleLocations); | - | ||||||||||||
473 | } never executed: end of block | 0 | ||||||||||||
474 | - | |||||||||||||
475 | void QOpenGLTextureHelper::qt_CompressedTextureSubImage1D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *bits) | - | ||||||||||||
476 | { | - | ||||||||||||
477 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
478 | glCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, bits); | - | ||||||||||||
479 | } never executed: end of block | 0 | ||||||||||||
480 | - | |||||||||||||
481 | void QOpenGLTextureHelper::qt_CompressedTextureSubImage2D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *bits) | - | ||||||||||||
482 | { | - | ||||||||||||
483 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
484 | glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, bits); | - | ||||||||||||
485 | } never executed: end of block | 0 | ||||||||||||
486 | - | |||||||||||||
487 | void QOpenGLTextureHelper::qt_CompressedTextureSubImage3D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *bits) | - | ||||||||||||
488 | { | - | ||||||||||||
489 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
490 | glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, bits); | - | ||||||||||||
491 | } never executed: end of block | 0 | ||||||||||||
492 | - | |||||||||||||
493 | void QOpenGLTextureHelper::qt_CompressedTextureImage1D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLenum internalFormat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *bits) | - | ||||||||||||
494 | { | - | ||||||||||||
495 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
496 | glCompressedTexImage1D(target, level, internalFormat, width, border, imageSize, bits); | - | ||||||||||||
497 | } never executed: end of block | 0 | ||||||||||||
498 | - | |||||||||||||
499 | void QOpenGLTextureHelper::qt_CompressedTextureImage2D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *bits) | - | ||||||||||||
500 | { | - | ||||||||||||
501 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
502 | glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, bits); | - | ||||||||||||
503 | } never executed: end of block | 0 | ||||||||||||
504 | - | |||||||||||||
505 | void QOpenGLTextureHelper::qt_CompressedTextureImage3D(GLuint texture, GLenum target, GLenum bindingTarget, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *bits) | - | ||||||||||||
506 | { | - | ||||||||||||
507 | TextureBinder binder(this, texture, target, bindingTarget); | - | ||||||||||||
508 | glCompressedTexImage3D(target, level, internalFormat, width, height, depth, border, imageSize, bits); | - | ||||||||||||
509 | } never executed: end of block | 0 | ||||||||||||
510 | - | |||||||||||||
511 | - | |||||||||||||
Switch to Source code | Preprocessed file |