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

Method font_impl

src/backend/opengl/font_impl.cpp:252–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252font_impl::font_impl()
253 : mTTFfile(""), mIsFontLoaded(false), mAtlas(new FontAtlas(512, 512, 1)), mVBO(0),
254 mProgram(glsl::font_vs.c_str(), glsl::font_fs.c_str()),
255 mOrthoW(1), mOrthoH(1)
256{
257 mPMatIndex = mProgram.getUniformLocation("projectionMatrix");
258 mMMatIndex = mProgram.getUniformLocation("modelViewMatrix");
259 mTexIndex = mProgram.getUniformLocation("tex");
260 mClrIndex = mProgram.getUniformLocation("textColor");
261
262 mGlyphLists.resize(size_t(MAX_FONT_SIZE-MIN_FONT_SIZE)+1, GlyphList());
263}
264
265font_impl::~font_impl()
266{

Callers

nothing calls this directly

Calls 1

getUniformLocationMethod · 0.80

Tested by

no test coverage detected