aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/scenegraph/qsgdistancefieldglyphcache_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/scenegraph/qsgdistancefieldglyphcache_p.h')
-rw-r--r--src/declarative/scenegraph/qsgdistancefieldglyphcache_p.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/declarative/scenegraph/qsgdistancefieldglyphcache_p.h b/src/declarative/scenegraph/qsgdistancefieldglyphcache_p.h
index bcfb44a706..0284d5ab67 100644
--- a/src/declarative/scenegraph/qsgdistancefieldglyphcache_p.h
+++ b/src/declarative/scenegraph/qsgdistancefieldglyphcache_p.h
@@ -53,6 +53,9 @@ QT_BEGIN_NAMESPACE
class QGLShaderProgram;
+typedef float (*ThresholdFunc)(float glyphScale);
+typedef float (*AntialiasingSpreadFunc)(float glyphScale);
+
class Q_DECLARATIVE_EXPORT QSGDistanceFieldGlyphCache : public QObject
{
Q_OBJECT
@@ -104,6 +107,12 @@ public:
static bool distanceFieldEnabled();
+ ThresholdFunc thresholdFunc() const { return m_threshold_func; }
+ void setThresholdFunc(ThresholdFunc func) { m_threshold_func = func; }
+
+ AntialiasingSpreadFunc antialiasingSpreadFunc() const { return m_antialiasingSpread_func; }
+ void setAntialiasingSpreadFunc(AntialiasingSpreadFunc func) { m_antialiasingSpread_func = func; }
+
private Q_SLOTS:
void onContextDestroyed(const QGLContext *context);
@@ -153,6 +162,8 @@ private:
GLfloat m_vertexCoordinateArray[8];
GLfloat m_textureCoordinateArray[8];
+ ThresholdFunc m_threshold_func;
+ AntialiasingSpreadFunc m_antialiasingSpread_func;
};
QT_END_NAMESPACE