Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qsgdistancefieldglyphnode_p_p.h>
Public Member Functions | |
QSGDistanceFieldShiftedStyleTextMaterial () | |
~QSGDistanceFieldShiftedStyleTextMaterial () | |
QSGMaterialType * | type () const override |
This function is called by the scene graph to query an identifier that is unique to the QSGMaterialShader instantiated by createShader(). | |
QSGMaterialShader * | createShader (QSGRendererInterface::RenderMode renderMode) const override |
This function returns a new instance of a the QSGMaterialShader implementation used to render geometry for a specific implementation of QSGMaterial. | |
int | compare (const QSGMaterial *other) const override |
Compares this material to other and returns 0 if they are equal; -1 if this material should sort before other and 1 if other should sort before. | |
void | setShift (const QPointF &shift) |
const QPointF & | shift () const |
Public Member Functions inherited from QSGDistanceFieldStyledTextMaterial | |
QSGDistanceFieldStyledTextMaterial () | |
~QSGDistanceFieldStyledTextMaterial () | |
int | compare (const QSGMaterial *other) const override |
Compares this material to other and returns 0 if they are equal; -1 if this material should sort before other and 1 if other should sort before. | |
void | setStyleColor (const QColor &color) |
const QVector4D & | styleColor () const |
Public Member Functions inherited from QSGDistanceFieldTextMaterial | |
QSGDistanceFieldTextMaterial () | |
~QSGDistanceFieldTextMaterial () | |
QSGMaterialType * | type () const override |
This function is called by the scene graph to query an identifier that is unique to the QSGMaterialShader instantiated by createShader(). | |
QSGMaterialShader * | createShader (QSGRendererInterface::RenderMode renderMode) const override |
This function returns a new instance of a the QSGMaterialShader implementation used to render geometry for a specific implementation of QSGMaterial. | |
int | compare (const QSGMaterial *other) const override |
Compares this material to other and returns 0 if they are equal; -1 if this material should sort before other and 1 if other should sort before. | |
virtual void | setColor (const QColor &color) |
const QVector4D & | color () const |
void | setGlyphCache (QSGDistanceFieldGlyphCache *a) |
QSGDistanceFieldGlyphCache * | glyphCache () const |
void | setTexture (const QSGDistanceFieldGlyphCache::Texture *tex) |
const QSGDistanceFieldGlyphCache::Texture * | texture () const |
void | setFontScale (qreal fontScale) |
qreal | fontScale () const |
QSize | textureSize () const |
bool | updateTextureSize () |
bool | updateTextureSizeAndWrapper () |
QSGTexture * | wrapperTexture () const |
Public Member Functions inherited from QSGMaterial | |
QSGMaterial () | |
virtual | ~QSGMaterial () |
QSGMaterial::Flags | flags () const |
Returns the material's flags. | |
void | setFlag (Flags flags, bool on=true) |
Sets the flags flags on this material if on is true; otherwise clears the attribute. | |
int | viewCount () const |
Protected Attributes | |
QPointF | m_shift |
Protected Attributes inherited from QSGDistanceFieldStyledTextMaterial | |
QVector4D | m_styleColor |
Protected Attributes inherited from QSGDistanceFieldTextMaterial | |
QSize | m_size |
QVector4D | m_color |
QSGDistanceFieldGlyphCache * | m_glyph_cache |
const QSGDistanceFieldGlyphCache::Texture * | m_texture |
qreal | m_fontScale |
QSGPlainTexture * | m_sgTexture |
Additional Inherited Members | |
Public Types inherited from QSGMaterial | |
enum | Flag { Blending = 0x0001 , RequiresDeterminant = 0x0002 , RequiresFullMatrixExceptTranslate = 0x0004 | RequiresDeterminant , RequiresFullMatrix = 0x0008 | RequiresFullMatrixExceptTranslate , NoBatching = 0x0010 , MultiView2 = 0x10000 , MultiView3 = 0x20000 , MultiView4 = 0x40000 } |
\value Blending Set this flag to true if the material requires blending to be enabled during rendering. More... | |
Definition at line 91 of file qsgdistancefieldglyphnode_p_p.h.
QSGDistanceFieldShiftedStyleTextMaterial::QSGDistanceFieldShiftedStyleTextMaterial | ( | ) |
Definition at line 442 of file qsgdistancefieldglyphnode_p.cpp.
QSGDistanceFieldShiftedStyleTextMaterial::~QSGDistanceFieldShiftedStyleTextMaterial | ( | ) |
Definition at line 447 of file qsgdistancefieldglyphnode_p.cpp.
|
overridevirtual |
Compares this material to other and returns 0 if they are equal; -1 if this material should sort before other and 1 if other should sort before.
The scene graph can reorder geometry nodes to minimize state changes. The compare function is called during the sorting process so that the materials can be sorted to minimize state changes in each call to QSGMaterialShader::updateState().
The this pointer and other is guaranteed to have the same type().
Reimplemented from QSGMaterial.
Definition at line 465 of file qsgdistancefieldglyphnode_p.cpp.
|
overridevirtual |
This function returns a new instance of a the QSGMaterialShader implementation used to render geometry for a specific implementation of QSGMaterial.
The function will be called only once for each combination of material type and renderMode and will be cached internally.
For most materials, the renderMode can be ignored. A few materials may need custom handling for specific render modes. For instance if the material implements antialiasing in a way that needs to account for perspective transformations when RenderMode3D is in use.
Implements QSGDistanceFieldStyledTextMaterial.
Definition at line 457 of file qsgdistancefieldglyphnode_p.cpp.
Definition at line 101 of file qsgdistancefieldglyphnode_p_p.h.
|
inline |
Definition at line 102 of file qsgdistancefieldglyphnode_p_p.h.
|
overridevirtual |
This function is called by the scene graph to query an identifier that is unique to the QSGMaterialShader instantiated by createShader().
For many materials, the typical approach will be to return a pointer to a static, and so globally available, QSGMaterialType instance. The QSGMaterialType is an opaque object. Its purpose is only to serve as a type-safe, simple way to generate unique material identifiers.
Implements QSGDistanceFieldStyledTextMaterial.
Definition at line 451 of file qsgdistancefieldglyphnode_p.cpp.
|
protected |
Definition at line 105 of file qsgdistancefieldglyphnode_p_p.h.