Declaring a 2d Rectangle?

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
jhend60
Posts: 44
Joined: Mon Oct 27, 2008 10:11 am
Location: behind you
Contact:

Declaring a 2d Rectangle?

Post by jhend60 »

What would I use to declare a 2d Rectangle (so I can change it's colour etc).
EG IMeshSceneNode* rect1 = 0; where IMeshSceneNode would be 2D rect or something... could someone tell me what to use?

The code I need to use this with is a simple driver->draw2Drectangle.
Ion Dune
Posts: 453
Joined: Mon Nov 12, 2007 8:29 pm
Location: California, USA
Contact:

Post by Ion Dune »

You don't. Color is decided in the function IVideoDriver::draw2dRectangle(...).

See this or this
Post Reply