Crosshair Confusion

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Crosshair Confusion

Post by Robomaniac »

I'm trying to display a text crosshair in the middle of the screen using the following code

Code: Select all

font->draw(L"+", core::rect<s32>(60, 60, 170, 170), video::SColor(255,255,255,255));
this is in the main loop, after smgr->drawAll(); If i don't use smgr->drawAll();, then it shows, but not when i draw the map. Thanks for your help.

--The Robomaniac
[dx/x]=HUNT3R
Posts: 271
Joined: Sat Aug 23, 2003 5:52 pm
Location: Hurricane Central, Florida

Post by [dx/x]=HUNT3R »

just make, or download, a small bitmap image of a crosshair and load it in as a ITexture and use driver->draw2DImage to put it in the center of the screen.
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Post by Robomaniac »

Thanks, that worked
Post Reply