MCPcopy Create free account
hub / github.com/arrayfire/forge / setOthro2D

Method setOthro2D

src/backend/opengl/font_impl.cpp:272–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272void font_impl::setOthro2D(int pWidth, int pHeight)
273{
274 mOrthoW = pWidth;
275 mOrthoH = pHeight;
276 mProjMat = glm::ortho(0.0f, float(mOrthoW), 0.0f, float(mOrthoH));
277}
278
279void font_impl::loadFont(const char* const pFile)
280{

Callers 3

renderTickLabelsMethod · 0.45
renderMethod · 0.45
drawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected