CPhongMaterial



Implements PhongMaterial control.

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

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

    // IMaterialControl methods 
    bool Activate(COpenGL *graphics, IModel *model, ICamera *camera) override;

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

    // IPhongMaterial 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 Vec3f &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;

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