Implements Tube control.
You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.
class CTube :public virtual ITube, public C3DControl
{
protected:
void FreeResources(COpenGL *graphics) override;
void Render(COpenGL *graphics, IRenderer *renderer, ICamera *camera) override;
public:
// ITube getters
float getTubeOuterRadius() override;
float getTubeInnerRadius() override;
float getTubeHeight() override;
int getTubeSides() override;
int getCapSegments() override;
int getHeightSegments() override;
// ITube setters
bool setTubeOuterRadius(const float value) override;
bool setTubeInnerRadius(const float value) override;
bool setTubeHeight(const float value) override;
bool setTubeSides(const int value) override;
bool setTubeSize(const float outer_radius, const float inner_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;
CTube();
CTube(IControl *parent);
};
Namespace: | nitisa::opengl |
Include: | OpengL/Controls/Tube/Tube.h |