CPrimitiveCylinder


Implements 3D cylinder primitive.

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

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

    CPrimitiveCylinder(IControl *control);

    float const &Radius;
    float const &Height;
    int const &Sides;
    int const &CapSegments;
    int const &HeightSegments;

    bool setRadius(const float value);
    bool setHeight(const float value);
    bool setSides(const int value);
    bool setSize(const float radius, 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/Cylinder/PrimitiveCylinder.h