OgreFontHelper
Utils for rendering text if Ogre::TextAreaOverlayElement is not enough
Welcome to the new Ogre Wiki!
If you haven't done so already, be sure to visit the Wiki Portal to read about how the wiki works. Especially the Ogre Wiki Overview page.
If you haven't done so already, be sure to visit the Wiki Portal to read about how the wiki works. Especially the Ogre Wiki Overview page.
This page has problems
Ghoulsblade? 01:13, 2 July 2007 (BST) : a while ago i wrote some utils for rendering text as the textarea overlay was not sufficient for my needs.
maybe someone will find this useful
what this might be useful for :
- render text inside the 3d scene (flat, but with 3d coordinates)
- calculating text bounds before/without creating an overlay element
- autowrapping of text
- mousepicking of text (what glyph/charindex is below the mouse, useful for text input)
- getting the bounding box of a glyph/charindex inside a textbox, e.g. for highlighting text/selection
here's a forum thread about it :
here is the code :
usage examples :
- http://zwischenwelt.org/trac/lugre/browser/trunk/lugre/src/lugre_ColourClipTextOverlay.cpp
- http://zwischenwelt.org/trac/lugre/browser/trunk/lugre/include/lugre_ColourClipTextOverlay.h
Contributors to this page: jacmoe
and
OgreWikiBot
.
Page last modified on Saturday 02 of January, 2010 21:01:30 UTC by jacmoe
.
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.
Sidebar
Search box
Online users
42
online users

