Original Post
I need to create a vertexbuffer holding textured vertices for a sphere of any radius.
Could someone give me example code that saves the vertices of a sphere with radius r into vertexbuffer vb.
of type
struct VERTEX
{
FLOAT x, y, z;
FLOAT nx, ny, nz;
D3DCOLOR color;
FLOAT tx, ty;
};
-Thanks
-CPorgrammer