CPrimitiveCone


Implements 3D cone primitive.

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

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

    CPrimitiveCone(IControl *control);

    float const &Radius1;
    float const &Radius2;
    float const &Height;
    int const &Sides;
    int const &CapSegments;
    int const &HeightSegments;

    bool setRadius1(const float value);
    bool setRadius2(const float value);
    bool setHeight(const float value);
    bool setSides(const int value);
    bool setSize(const float radius1, const float radius2, const float height, const int sides);
    bool setCapSegments(const int value);
    bool setHeightSegments(const int value);
    bool setSegments(const int cap, const int height);

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