CBox



Implements Box control.

You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.

class CBox :public virtual IBox, public C3DControl
{
protected:
    void FreeResources(COpenGL *graphics) override;
    void Render(COpenGL *graphics, IRenderer *renderer, ICamera *camera) override;
public:
    // IBox getters 
    float getBoxWidth() override;
    float getBoxHeight() override;
    float getBoxDepth() override;
    int getWidthSegments() override;
    int getHeightSegments() override;
    int getDepthSegments() override;

    // IBox setters 
    bool setBoxWidth(const float value) override;
    bool setBoxHeight(const float value) override;
    bool setBoxDepth(const float value) override;
    bool setBoxSize(const float width, const float height, const float depth) override;
    bool setWidthSegments(const int value) override;
    bool setHeightSegments(const int value) override;
    bool setDepthSegments(const int value) override;
    bool setSegments(const int width, const int height, const int depth) override;

    CBox();
    CBox(IControl *parent);
};
Namespace: nitisa::opengl
Include: OpengL/Controls/Box/Box.h