Unable to draw 2D rectangle on the screen

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
Weng
Posts: 97
Joined: Tue Oct 03, 2006 4:23 pm
Location: Singapore

Unable to draw 2D rectangle on the screen

Post by Weng »

I'm trying to draw a grey 2D rectangle of size 640x480 which will appear when the game comes to an end.

I did this:

Code: Select all

driver->draw2DRectangle(video::SColor(100,204,0,255),core::rect<s32>(10,10,200,180),0);
However, nothing appears.

Even when I changed the alpha value and changed the position of the rectangle, nothing appears.

What's wrong with the settings?

:?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Are you making that call between the beginScene() and endScene() calls?
Post Reply