CPrimitiveSphere


Implements 3D sphere primitive.

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

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

    CPrimitiveSphere(IControl *control);

    float const &Radius;
    int const &Sides;
    int const &YSides;

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

    void FreeResources();
};
Namespace: nitisa::opengl
Include: OpenGL/Primitives/3D/Sphere/PrimitiveSphere.h