CPrimitiveCircle


Implements 2D circle primitive.

You can find more information in comments below. Overrided methods can be found in corresponding base class or interface.

class CPrimitiveCircle :public virtual IPrimitive, public nitisa::CModel
{
public:
    bool Render() override;

    CPrimitiveCircle(IControl *control);

    float const &Radius;
    int const &Sides;
    int const &Segments;

    bool setRadius(const float value);
    bool setSides(const int value);
    bool setSegments(const int value);
    bool setSize(const float radius, const int sides);

    void FreeResources();
};
Namespace: nitisa::opengl
Include: OpenGL/Primitives/2D/Circle/PrimitiveCircle.h