Drawing a filled polygon?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Rabid Mantis
Posts: 61
Joined: Sun May 08, 2005 11:30 am

Drawing a filled polygon?

Post by Rabid Mantis »

Can irrlicht draw a filled polygon? I know It can do a rectangle, but I can't find anything else. If not, does anyone know how I'd go about doing it myself? I know how to draw shapes and work with vertices in 3d space, but not how to fill them. I just need to fill it with a single alpha blended color (SColor).

Thanks.
schick
Posts: 230
Joined: Tue Oct 07, 2003 3:55 pm
Location: Germany
Contact:

Post by schick »

irr::video::IVideoDriver does all the drawing. Have a look at the procedures, which are supported. You might find something like ::draw3DTriangle.

Cheers,

Schick
Please send me an e-mail instead of a private message.
Rabid Mantis
Posts: 61
Joined: Sun May 08, 2005 11:30 am

Post by Rabid Mantis »

Okay, I figured out I can use drawIndexedTriangleList to actually draw the triangles, and set material type to EMT_TRANSPARENT_ALPHA_CHANNEL for alpha blending.
Post Reply