- Timestamp:
- May 5, 2011, 5:36:53 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/opengl/gl2paintengineex/qtextureglyphcache_gl_p.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/opengl/gl2paintengineex/qtextureglyphcache_gl_p.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 63 63 class QGL2PaintEngineExPrivate; 64 64 65 class Q GLTextureGlyphCache : public QObject, public QTextureGlyphCache65 class QTextureGlyphCache 66 66 { 67 67 Q_OBJECT … … 73 73 virtual void resizeTextureData(int width, int height); 74 74 virtual void fillTexture(const Coord &c, glyph_t glyph); 75 virtual int glyphMargin() const; 75 virtual int glyphPadding() const; 76 virtual int maxTextureWidth() const; 77 virtual int maxTextureHeight() const; 76 78 77 79 inline GLuint texture() const { return m_texture; } … … 82 84 inline void setPaintEnginePrivate(QGL2PaintEngineExPrivate *p) { pex = p; } 83 85 86 87 88 89 90 91 92 93 94 84 95 85 96 public Q_SLOTS: … … 91 102 // destroy the fbo and texture here, but since the context 92 103 // is about to be destroyed, the GL server will do the 93 // clean up for us anyway 104 // clean up for us anyway. We reset everything, so that the 105 // glyph cache object can be reused later by setting a new 106 // context on it. 94 107 m_fbo = 0; 95 108 m_texture = 0; 96 109 ctx = 0; 110 111 112 113 114 115 116 117 97 118 } else { 98 119 // since the context holding the texture is shared, and … … 103 124 } 104 125 } 126 127 105 128 106 129 private: … … 116 139 117 140 QGLShaderProgram *m_program; 141 142 118 143 }; 119 144
Note:
See TracChangeset
for help on using the changeset viewer.
