Whats the easiest way to render simple 2D text with OxEngine?

Mar 3, 2010 at 11:25 AM

Hi, I just started using OxEngine.

As the title says, what would be the easiest way to render simple 2D text in a game, (for example, for a console system or a FPS counter or a message log)


Mar 4, 2010 at 1:06 PM

If I were you, I'd probably extend the GuiSystem to have an optionally visible console gui component. Extending the GuiSystem (or any other services) also means extending the DefaultEngine to create your new GuiSystem by overriding DefaultEngine.Create...Hook(). In turn, this also means changing EngineConstructionToken in Ox.xml to create your new DefaultEngine.

As you can see, extending the engine in this way is a little extra work. Once you initially get it set for extension in this way, though, you'll never have to set it up again - and you'll have _complete_ control over Ox.

If you create a functional debug console thingy, you could send me the code and I could consider integrating it into Ox's code base :)