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