Is it possible to write text using ogre?

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
balizeiro
Halfling
Posts: 50
Joined: Fri Mar 23, 2007 1:30 pm

Is it possible to write text using ogre?

Post by balizeiro »

I have several walls in which I want to display different text each time the application begins.

I already found this example: "HowTo: Write text on texture"
http://www.ogre3d.org/wiki/index.php/Ho ... on_texture
But I was unable to make the example work, because I got errors like:
- error C2061: syntax error : identifier 'OgreChar'
- error C2027: use of undefined type 'Ogre::Font'

So I was wondering if there's another way to do what I want, or what can be causing this compilation errors?
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Post by sinbad »

You just needed to #include "OgreFont.h"
balizeiro
Halfling
Posts: 50
Joined: Fri Mar 23, 2007 1:30 pm

Post by balizeiro »

That solved "error C2027: use of undefined type 'Ogre::Font' " but I still get "error C2061: syntax error : identifier 'OgreChar'" :(

And is this the best solution for my problem, or is there another way to display different text each time the application begins in several walls?

Edit: when I say several walls, I'm talking about something like +- 100 walls. I'm using Eihort.
Ajare
Goblin
Posts: 282
Joined: Sat May 14, 2005 9:20 pm
x 1

Post by Ajare »

OgreChar is probably some typedef that's no longer used in recent versions. Regardless, it's just a normal char.
Post Reply