| 250 | } |
| 251 | |
| 252 | font_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 | |
| 265 | font_impl::~font_impl() |
| 266 | { |
nothing calls this directly
no test coverage detected