simple drawing

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
Luzifer

simple drawing

Post by Luzifer »

Hi, can I draw for example a simple line in Irrlicht and if so, how? thx
madinitaly
Posts: 92
Joined: Sat Nov 29, 2003 8:30 pm
Contact:

Post by madinitaly »

In the rendering loop, try putting this:

Code: Select all

yourVideoDriver->draw2DLine (core::position2d<s32> (0, 0), core::position2d<s32> (640, 480));
It should draw a diagonal line.
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

Not 100% sure but I think this command works only in software mode.

If it isn't working try draw2dRectangle instead.
Post Reply