CPrimitivePlane


Implements 2D plane primitive.

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

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

    CPrimitivePlane(IControl *control);

    float const &Width;
    float const &Depth;
    int const &WidthSegments;
    int const &DepthSegments;

    bool setWidth(const float value);
    bool setDepth(const float value);
    bool setSize(const float width, const float depth);
    bool setWidthSegments(const int value);
    bool setDepthSegments(const int value);
    bool setSegments(const int width, const int depth);

    void FreeResources();
};
Namespace: nitisa::opengl
Include: OpenGL/Primitives/2D/Plane/PrimitivePlane.h