CPrimitivePyramid


Implements 3D pyramid primitive.

You can find more information in comments below. Overrided methods can be found in corresponding base class or interface.

class CPrimitivePyramid :public virtual IPrimitive, public nitisa::CModel
{
public:
    bool Render() override;

    CPrimitivePyramid(IControl *control);

    float const &Width;
    float const &Depth;
    float const &Height;
    int const &Segments;

    bool setWidth(const float value);
    bool setDepth(const float value);
    bool setHeight(const float value);
    bool setSize(const float width, const float depth, const float height);
    bool setSegments(const int value);

    void FreeResources();
};
Namespace: nitisa::opengl
Include: OpenGL/Primitives/3D/Pyramid/PrimitivePyramid.h