Implements Sphere control.
You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.
class CSphere :public virtual ISphere, public C3DControl
{
protected:
void FreeResources(COpenGL *graphics) override;
void Render(COpenGL *graphics, IRenderer *renderer, ICamera *camera) override;
public:
// ISphere getters
float getSphereRadius() override;
int getSphereSides() override;
int getSphereYSides() override;
// ISphere setters
bool setSphereRadius(const float value) override;
bool setSphereSides(const int value) override;
bool setSphereYSides(const int value) override;
bool setSphereSize(const float radius, const int sides, const int y_sides) override;
CSphere();
CSphere(IControl *parent);
};
Namespace: | nitisa::opengl |
Include: | OpengL/Controls/Sphere/Sphere.h |