CSolidMaterial



Implements SolidMaterial control.

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

class CSolidMaterial :public virtual ISolidMaterial, public CControl
{
public:
    // IControl getters 
    bool isAcceptControl() override;
    bool isAcceptControl(IControl *control) override;

    // IMaterialControl methods 
    bool Activate(standard::windows::opengl::IOpenGL *graphics, const Mat4 &model, ICamera *camera) override;

    // ISolidMaterial getters 
    ITexture *getTexture() override;
    Color getColor() override;

    // ISolidMaterial setters 
    bool setTexture(ITexture *value) override;
    bool setColor(const Color &value) override;

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