Adding a console
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(...);
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)
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)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement