开发者

How to use C++ to draw a polygon using an array of 3d points

I would like to get help in using C++ in order to draw a polygon using an array of 3d points. I alread开发者_C百科y sort my array so that my points are arranged in order(i.e one points follow the other). Any help will be appreciated in advance. Thanks


Unless I am misreading the question, you will need a 3D-Rendering API such as Direct3D or OpenGL. There are other options, but those two are by far the most popular.

You do have to be aware that Direct3D is available only on Windows, while OpenGL is supported on most major platforms. But Direct3D is part of DirectX which is an entire package of multimedia APIs while OpenGL is strictly graphics (aside from OpenAL for audio).

Whichever you choose, there are countless tutorials online about drawing basic polygons that are just a quick Google search away.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜