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(standard::windows::opengl::IOpenGL *graphics) override;
void Render(standard::windows::opengl::IOpenGL *graphics, IRenderer *renderer, ICamera *camera) override;
public:
// ISphere getters
bool isUseVertexNormal() override;
float getSphereRadius() override;
int getSphereSides() override;
int getSphereYSides() override;
// ISphere setters
bool setUseVertexNormal(const bool value) override;
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 |