ofDoc > 3d > ofSpherePrimitive

ofSpherePrimitive

Protected Attributes

float radius

Public Functions

ofSpherePrimitive (float radius, int res, ofPrimitiveMode mode=OF_PRIMITIVE_TRIANGLE_STRIP)
void set (float radius, int resolution, ofPrimitiveMode mode=OF_PRIMITIVE_TRIANGLE_STRIP)
void setResolution (int res)
void setRadius (float radius)
void setMode (ofPrimitiveMode mode)
float getRadius () const
int getResolution () const