Implements Disk control.
You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.
class CDisk :public virtual IDisk, public C3DControl
{
protected:
void FreeResources(COpenGL *graphics) override;
void Render(COpenGL *graphics, IRenderer *renderer, ICamera *camera) override;
public:
// IDisk getters
float getDiskOuterRadius() override;
float getDiskInnerRadius() override;
int getDiskSides() override;
int getCapSegments() override;
// IDisk setters
bool setDiskOuterRadius(const float value) override;
bool setDiskInnerRadius(const float value) override;
bool setDiskSides(const int value) override;
bool setDiskSize(const float outer_radius, const float inner_radius, const int sides) override;
bool setCapSegments(const int value) override;
CDisk();
CDisk(IControl *parent);
};
Namespace: | nitisa::opengl |
Include: | OpengL/Controls/Disk/Disk.h |