I am wondering if direct x can draw polys? I now that opengl can draw polys but I am not sure about direct X.
I am wondering if direct x can draw polys? I now that opengl can draw polys but I am not sure about direct X.
Compiler in use: MinGW
OS: Windows ME
DrawPrimitive()
Make the list of points then just use D3DPT_TRIANGLEFAN. It will work for convex polygons.
Last edited by Brad0407; 04-12-2007 at 02:45 PM.
Don't quote me on that... ...seriously
Can direct x draw splines??
Compiler in use: MinGW
OS: Windows ME
It's sad that I don't even know what splines are, but I've heard of them so I think so. I don't how you would draw them, but you probably can. Also, were you talking about outlines of polygons or filled polygons? D3DPT_LINESTRIP would draw the outline of any polygon. D3DPT_TRIANGLEFAN would be used to draw filled convex polygons.
Last edited by Brad0407; 04-12-2007 at 02:45 PM.
Don't quote me on that... ...seriously
A triangle fan can draw convex polygons too.
Any graphics library can draw any object with enough work on your part... If you're asking whether or not DX has native support for splines, I dunno. OpenGL doesn't.
I meant to say convex. I was tired when I wrote that.
Don't quote me on that... ...seriously
the D3DX library does have functions for different kinds of splines.
...which are useless unless you truly understand splines and how to optimize them for use in realtime 3D graphics.
Perspective said it best. Any API can render primitives.