Write Text to IImage
Write Text to IImage
So, I have this little issue where I need to, as the title says, write a string to an IImage, but I can't seem to find a method for doing that. Is there a way, or if not, are there any pointers to write such a method?
Re: Write Text to IImage
You can use textures as rendertarget (IVideoDriver::setRenderTarget). And then convert the texture to an IImage (IVideoDriver::createImage). I don't think there is a solution aside from that in Irrlicht.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Write Text to IImage
If you need a software-only solution, use SDL and SDL_ttf for example.