Qt 4.8
Public Functions | Public Variables | List of all members
QGLGlyphTexture Struct Reference

#include <qtextureglyphcache_gl_p.h>

Public Functions

 QGLGlyphTexture (const QGLContext *ctx)
 
 ~QGLGlyphTexture ()
 

Public Variables

GLuint m_fbo
 
int m_height
 
GLuint m_texture
 
int m_width
 

Detailed Description

Definition at line 67 of file qtextureglyphcache_gl_p.h.

Constructors and Destructors

◆ QGLGlyphTexture()

QGLGlyphTexture::QGLGlyphTexture ( const QGLContext ctx)
inline

Definition at line 69 of file qtextureglyphcache_gl_p.h.

70  : m_fbo(0)
71  , m_width(0)
72  , m_height(0)
73  {
76 
77 #ifdef QT_GL_TEXTURE_GLYPH_CACHE_DEBUG
78  qDebug(" -> QGLGlyphTexture() %p for context %p.", this, ctx);
79 #endif
80  }
static bool hasOpenGLFramebufferObjects()
Returns true if the OpenGL GL_EXT_framebuffer_object extension is present on this system; otherwise r...
QScopedPointer< QGLContextPrivate > d_ptr
Definition: qgl.h:430
Q_CORE_EXPORT void qDebug(const char *,...)
#define glGenFramebuffers
uint workaround_brokenFBOReadBack
Definition: qgl_p.h:432

◆ ~QGLGlyphTexture()

QGLGlyphTexture::~QGLGlyphTexture ( )
inline

Definition at line 82 of file qtextureglyphcache_gl_p.h.

82  {
84 #ifdef QT_GL_TEXTURE_GLYPH_CACHE_DEBUG
85  qDebug("~QGLGlyphTexture() %p for context %p.", this, ctx);
86 #endif
87  // At this point, the context group is made current, so it's safe to
88  // release resources without a makeCurrent() call
89  if (ctx) {
90  if (m_fbo)
92  if (m_width || m_height)
93  glDeleteTextures(1, &m_texture);
94  }
95  }
static const QGLContext * currentContext()
Returns the current context, i.e.
Definition: qgl.cpp:3545
Q_CORE_EXPORT void qDebug(const char *,...)
The QGLContext class encapsulates an OpenGL rendering context.
Definition: qgl.h:310
#define glDeleteFramebuffers
#define ctx
Definition: qgl.cpp:6094

Properties

◆ m_fbo

GLuint QGLGlyphTexture::m_fbo

◆ m_height

int QGLGlyphTexture::m_height

◆ m_texture

GLuint QGLGlyphTexture::m_texture

◆ m_width

int QGLGlyphTexture::m_width

The documentation for this struct was generated from the following file: