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