CGouraudMaterial



Implements GouraudMaterial control.

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

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

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

    // IGouraudMaterial 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;

    // 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 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;

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