RigsofRods
Soft-body Physics Simulation
WriteTextToTexture.h
Go to the documentation of this file.
1 /*
2  This source file is part of Rigs of Rods
3  Copyright 2005-2012 Pierre-Michel Ricordel
4  Copyright 2007-2012 Thomas Fischer
5 
6  For more information, see http://www.rigsofrods.org/
7 
8  Rigs of Rods is free software: you can redistribute it and/or modify
9  it under the terms of the GNU General Public License version 3, as
10  published by the Free Software Foundation.
11 
12  Rigs of Rods is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
23 
24 #pragma once
25 
26 #include "Application.h"
27 #include <OgreFont.h>
28 
29 #include <Overlay/OgreFont.h>
30 
33 
40 void SaveImage(Ogre::TexturePtr TextureToSave, Ogre::String filename);
41 
55 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);
56 
57 /// @} // @addtogroup Gfx
Application.h
Central state/object manager and communications hub.
SaveImage
void SaveImage(Ogre::TexturePtr TextureToSave, Ogre::String filename)
Saves a texture to the disk.
WriteToTexture
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)
Writes a string onto a texture.