CTorus



Implements Torus control.

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

class CTorus :public virtual ITorus, public C3DControl
{
protected:
    void FreeResources(COpenGL *graphics) override;
    void Render(COpenGL *graphics, IRenderer *renderer, ICamera *camera) override;
public:
    // ITorus getters 
    float getTorusRadius1() override;
    float getTorusRadius2() override;
    int getTorusSides1() override;
    int getTorusSides2() override;

    // ITorus setters 
    bool setTorusRadius1(const float value) override;
    bool setTorusRadius2(const float value) override;
    bool setTorusSides1(const int value) override;
    bool setTorusSides2(const int value) override;
    bool setTorusSize(const float radius1, const float radius2, const int sides1, const int sides2) override;

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