Page 1 of 1

Declaring a 2d Rectangle?

Posted: Sun Nov 16, 2008 2:14 am
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.

Posted: Sun Nov 16, 2008 10:42 pm
by Ion Dune
You don't. Color is decided in the function IVideoDriver::draw2dRectangle(...).

See this or this