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(standard::windows::opengl::IOpenGL *graphics) override;
void Render(standard::windows::opengl::IOpenGL *graphics, IRenderer *renderer, ICamera *camera) override;
public:
// ITube getters
bool isUseVertexNormal() override;
float getTubeOuterRadius() override;
float getTubeInnerRadius() override;
float getTubeHeight() override;
int getTubeSides() override;
int getCapSegments() override;
int getHeightSegments() override;
// ITube setters
bool setUseVertexNormal(const bool value) override;
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 |