Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
Functions
WriteTextToTexture.h File Reference

Description

Author
Copied from the ogre wiki: http://www.ogre3d.org/tikiwiki/tiki-index.php?page=HowTo%3A+Write+text+on+texture

Definition in file WriteTextToTexture.h.

#include "Application.h"
#include <OgreFont.h>
#include <Overlay/OgreFont.h>

Go to the source code of this file.

Functions

void SaveImage (Ogre::TexturePtr TextureToSave, Ogre::String filename)
 
void WriteToTexture (const Ogre::String &str, Ogre::TexturePtr destTexture, Ogre::Box destRectangle, Ogre::Font *font, const Ogre::ColourValue &color, int fontSize=15, int fontDPI=400, char justify='l', bool wordwrap=true)