depht of image

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
koso
Posts: 27
Joined: Thu May 21, 2009 11:10 am

depht of image

Post by koso »

Hello
I try draw red rectangle on some X Y coordinates with this code:

Code: Select all

driver->draw2DRectangle(video::SColor(255,255,0,0), core::rect<s32>(-100, -100, 100, 100));
but it doesnt works.nothing
can someone help?
Last edited by koso on Sun Jul 05, 2009 4:59 pm, edited 1 time in total.
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

-100 is outside of the screen. The top left corner of the window has the coordinates 0,0 and the bottom right corner has the coordinates width,height.

And most important:
Do you call this between IVideoDriver::beginScene() and IVideoDriver::endScene() ?
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
koso
Posts: 27
Joined: Thu May 21, 2009 11:10 am

Post by koso »

thanks for help.now it works :D
koso
Posts: 27
Joined: Thu May 21, 2009 11:10 am

Post by koso »

how can i do that rectangle will be under some image wich is drawn on screen?
shadowslair
Posts: 758
Joined: Mon Mar 31, 2008 3:32 pm
Location: Bulgaria

Post by shadowslair »

Draw it before drawing the image?
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
koso
Posts: 27
Joined: Thu May 21, 2009 11:10 am

Post by koso »

OK
Post Reply