CPrimitiveTorus


Implements 3D torus primitive.

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

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

    CPrimitiveTorus(IControl *control);

    float const &Radius1;
    float const &Radius2;
    int const &Sides1;
    int const &Sides2;

    bool setRadius1(const float value);
    bool setRadius2(const float value);
    bool setSides1(const int value);
    bool setSides2(const int value);
    bool setSize(const float radius1, const float radius2, const int sides1, const int sides2);

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