Ybalrid / Annwvyn

Annwvyn C++ Open Source designed-for-VR game engine and application developement framework
MIT License
41 stars 7 forks source link

Refactor the "WriteToTexture" function that is found in the Ann3DTextPlane.cpp file #148

Closed Ybalrid closed 7 years ago

Ybalrid commented 7 years ago

This is duplicated, ugly code that came from a Wiki. The same exact code is also found inside the AnnConsole class, but doesn't handle spaces in non-monospaced fonts correctly there.

Ybalrid commented 7 years ago

it's now a single static method part of the console component, with the space width fix and that take a pointer to the Ogre::Font* you want.