MCPcopy Create free account
hub / github.com/defold/defold / DrawTextParams

Method DrawTextParams

engine/render/src/render/font/font_renderer.cpp:136–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 }
135
136 DrawTextParams::DrawTextParams()
137 : m_WorldTransform(Matrix4::identity())
138 , m_FaceColor(0.0f, 0.0f, 0.0f, 1.0f)
139 , m_OutlineColor(0.0f, 0.0f, 0.0f, 1.0f)
140 , m_ShadowColor(0.0f, 0.0f, 0.0f, 1.0f)
141 , m_Text(0x0)
142 , m_TextLayout(0x0)
143 , m_SourceBlendFactor(dmGraphics::BLEND_FACTOR_ONE)
144 , m_DestinationBlendFactor(dmGraphics::BLEND_FACTOR_ONE_MINUS_SRC_ALPHA)
145 , m_RenderOrder(0)
146 , m_NumRenderConstants(0)
147 , m_Width(FLT_MAX)
148 , m_Height(0)
149 , m_Leading(1.0f)
150 , m_Tracking(0.0f)
151 , m_LineBreak(false)
152 , m_Align(TEXT_ALIGN_LEFT)
153 , m_VAlign(TEXT_VALIGN_TOP)
154 , m_StencilTestParamsSet(0)
155 {
156 m_StencilTestParams.Init();
157 }
158
159 static dmhash_t g_TextureSizeRecipHash = dmHashString64("texture_size_recip");
160

Callers

nothing calls this directly

Calls 2

identityFunction · 0.85
InitMethod · 0.45

Tested by

no test coverage detected