CBlinnPhongMaterial



Implements BlinnPhongMaterial control.

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

class CBlinnPhongMaterial :public virtual IBlinnPhongMaterial, 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;

    // IGouraudMaterial getters 
    ITexture *getTexture() override;
    Color getAmbientColor() override;
    Color getDiffuseColor() override;
    Color getSpecularColor() override;
    Color getLightDiffuseColor() override;
    Color getLightSpecularColor() override;
    Vector getLightPosition() override;
    float getLightX() override;
    float getLightY() override;
    float getLightZ() override;
    float getShininess() override;

    // IGouraudMaterial setters 
    bool setTexture(ITexture *value) override;
    bool setAmbientColor(const Color &value) override;
    bool setDiffuseColor(const Color &value) override;
    bool setSpecularColor(const Color &value) override;
    bool setLightDiffuseColor(const Color &value) override;
    bool setLightSpecularColor(const Color &value) override;
    bool setLightPosition(const Vector &value) override;
    bool setLightX(const float value) override;
    bool setLightY(const float value) override;
    bool setLightZ(const float value) override;
    bool setShininess(const float value) override;

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