CCylinder



Implements Cylinder control.

You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.

class CCylinder :public virtual ICylinder, public C3DControl
{
protected:
    void FreeResources(COpenGL *graphics) override;
    void Render(COpenGL *graphics, IRenderer *renderer, ICamera *camera) override;
public:
    // ICylinder getters 
    float getCylinderRadius() override;
    float getCylinderHeight() override;
    int getCylinderSides() override;
    int getCapSegments() override;
    int getHeightSegments() override;

    // ICylinder setters 
    bool setCylinderRadius(const float value) override;
    bool setCylinderHeight(const float value) override;
    bool setCylinderSides(const int value) override;
    bool setCylinderSize(const float radius, const float height, const int sides) override;
    bool setCapSegments(const int value) override;
    bool setHeightSegments(const int value) override;
    bool setSegments(const int cap, const int height) override;

    CCylinder();
    CCylinder(IControl *parent);
};
Namespace: nitisa::opengl
Include: OpengL/Controls/Cylinder/Cylinder.h