Adding a console

Started by
11 comments, last by Calin 18 years, 4 months ago
I dont't see how to render text to my console surface with ID3DXFont...
Advertisement
Quote:Original post by gael
I dont't see how to render text to my console surface with ID3DXFont...

Just set your console surface as the render target, then draw with font like normal. ie:

device->SetRenderTarget( mySurface );font->DrawText(...);
Dustin Franklin ( circlesoft :: KBase :: Mystic GD :: ApolloNL )
In addition to the previous post:
It's not 100% necessary to reder the text to your console texture, you can reder the text directly on screen. You will display the text when the console is down and remove the text when the console is up.
If you want your text to have an up and down motion you could use the the fourth parameter from the DrawText call ( ID3DXFont -> DrawText)

My project`s facebook page is “DreamLand Page”

This topic is closed to new replies.

Advertisement