152 qWarning(
"QGLTextureGlyphCache::resizeTextureData: Called with no context");
157 int oldWidth = glyphTexture->
m_width;
158 int oldHeight = glyphTexture->
m_height;
166 GLuint oldTexture = glyphTexture->
m_texture;
173 glDeleteTextures(1, &oldTexture);
183 glGenTextures(1, &tmp_texture);
207 glViewport(0, 0, oldWidth, oldHeight);
266 glCopyTexSubImage2D(
GL_TEXTURE_2D, 0, 0, 0, 0, 0, oldWidth, oldHeight);
270 glDeleteTextures(1, &tmp_texture);
271 glDeleteTextures(1, &oldTexture);
void bindAttributeLocation(const char *name, int location)
Binds the attribute name to the specified location.
static bool hasOpenGLFramebufferObjects()
Returns true if the OpenGL GL_EXT_framebuffer_object extension is present on this system; otherwise r...
void disableAttributeArray(int location)
Disables the vertex array at location in this shader program that was enabled by a previous call to e...
QScopedPointer< QGLContextPrivate > d_ptr
void setVertexAttributePointer(unsigned int arrayIndex, const GLfloat *pointer)
#define GL_TEXTURE_MIN_FILTER
bool compileSourceCode(const char *source)
Sets the source code for this shader and compiles it.
T * value(const QGLContext *context)
QGLEngineShaderManager * shaderManager
static const char *const qglslMainFragmentShader
#define QT_IMAGE_TEXTURE_UNIT
const QImage & image() const
QGLShaderProgram * blitProgram()
#define glVertexAttribPointer
#define GL_TEXTURE_WRAP_S
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
GLfloat m_vertexCoordinateArray[8]
#define GL_FRAMEBUFFER_EXT
The QString class provides a Unicode character string.
void updateClipScissorTest()
#define glBindFramebuffer
#define GL_COLOR_ATTACHMENT0_EXT
virtual void createTextureData(int width, int height)
static const GLuint QT_OPACITY_ATTR
QGLContextGroupResource< QGLGlyphTexture > m_textureResource
virtual void resizeTextureData(int width, int height)
#define GL_RENDERBUFFER_EXT
GLfloat m_textureCoordinateArray[8]
The QGLShader class allows OpenGL shaders to be compiled.
Q_CORE_EXPORT void qWarning(const char *,...)
virtual bool link()
Links together the shaders that were added to this program with addShader().
#define GL_TEXTURE_WRAP_T
QString & append(QChar c)
void setUniformValue(int location, GLfloat value)
Sets the uniform variable at location in the current context to value.
QGLShaderProgram * m_blitProgram
static const GLuint QT_TEXTURE_COORDS_ATTR
bool addShader(QGLShader *shader)
Adds a compiled shader to this shader program.
static const char *const qglslMainWithTexCoordsVertexShader
#define glFramebufferRenderbuffer
void transferMode(EngineMode newMode)
static const char *const qglslImageSrcFragmentShader
static const char *const qglslUntransformedPositionVertexShader
#define GL_TEXTURE_MAG_FILTER
static const GLuint QT_VERTEX_COORDS_ATTR
bool bind()
Binds this shader program to the active QGLContext and makes it the current shader program...
#define glFramebufferTexture2D
QGL2PaintEngineExPrivate * pex
void enableAttributeArray(int location)
Enables the vertex array at location in this shader program so that the value set by setAttributeArra...
The QGLShaderProgram class allows OpenGL shader programs to be linked and used.
uint workaround_brokenFBOReadBack