Hmm thanks both of you for the info.
Alvaro, that works great, but I am for some reason brain farting, why I can't draw quad with 4 points and use a triangle fan.
I use the code below to calculate the circle but I start at a triangle, and want to move up to a circle. So when I move from 3 sides to 4 sides I am not able to render a quad, keeps rendering a triangle....
Here is the code to Calculate the vertices and indices, and render
inline void Calculate(int level, float radius, const irr::video::SColor& color)
float angle = 360.0f/float(level);
for(float f = 0.0f; f < 360.0f; f+=angle)
0.0f, 0.0f, 0.0f,
for(int n = 2; n < level; ++n)
index.push_back(n - 1);
drawIndexedTriangleList(&vertex,vertex.size(), &index, index.size() / 3);
drawIndexedTriangleList ( const S3DVertex * vertices, u32 vertexCount, const u16 * indexList, u32 triangleCount)
Edited by MARS_999, 04 June 2013 - 11:37 AM.