8 #ifndef META_OCEAN_RENDERING_GLES_MATERIAL_H
9 #define META_OCEAN_RENDERING_GLES_MATERIAL_H
22 namespace GLESceneGraph
This class implements a color defined by red, green, blue and alpha parameters.
Definition: RGBAColor.h:41
This class wraps a GLESceneGraph attribute object.
Definition: GLESAttribute.h:36
ProgramType
Definition of different shader functionalities.
Definition: GLESAttribute.h:43
This class implements a class factory for all GLESceneGraph objects.
Definition: GLESFactory.h:30
This class implements a base for all GLESceneGraph framebuffers.
Definition: rendering/glescenegraph/GLESFramebuffer.h:34
This class implements a GLESceneGraph material object.
Definition: GLESMaterial.h:33
void bindMaterial(const GLESFramebuffer &framebuffer, GLESShaderProgram &shaderProgram, const std::string &materialName)
Binds this material attribute.
bool setAmbientColor(const RGBAColor &color) override
Sets the ambient color of the material.
void bindAttribute(const GLESFramebuffer &framebuffer, GLESShaderProgram &shaderProgram) override
Binds this attribute.
bool setSpecularColor(const RGBAColor &color) override
Sets the specular color of the material.
RGBAColor specularColor_
Specular color.
Definition: GLESMaterial.h:166
RGBAColor specularColor() const override
Returns the specular color of this material.
bool setTransparency(const float transparency) override
Sets the specular exponent of this material.
GLESMaterial()
Creates a new GLESceneGraph material object.
float specularExponent_
Specular exponent.
Definition: GLESMaterial.h:169
~GLESMaterial() override
Destructs a GLESceneGraph material object.
RGBAColor ambientColor() const override
Returns the ambient color of this material.
RGBAColor emissiveColor_
Emissive color.
Definition: GLESMaterial.h:163
float transparency() const override
Returns the transparency factor of this material with range [0.0, 1.0].
bool setEmissiveColor(const RGBAColor &color) override
Sets the emissive color of the material.
RGBAColor emissiveColor() const override
Returns the emissive color of this material.
bool setSpecularExponent(const float specularExponent) override
Sets the specular exponent of this material.
float specularExponent() const override
Returns the specular exponent of this material.
RGBAColor ambientColor_
Ambient color.
Definition: GLESMaterial.h:157
RGBAColor diffuseColor() const override
Returns the diffuse color of this material.
bool setDiffuseColor(const RGBAColor &color) override
Sets the diffuse color of the material.
RGBAColor diffuseColor_
Diffuse color.
Definition: GLESMaterial.h:160
bool set(const RGBAColor &ambient, const RGBAColor &diffuse, const RGBAColor &emissive, const RGBAColor &specular, const float specularExponent, const float transparency) override
Sets the transparency of the meterial.
float transparency_
Transparency value, with range [0, 1].
Definition: GLESMaterial.h:172
GLESAttribute::ProgramType necessaryShader() const override
Returns the shader type necessary to render an object with this attribute.
void get(RGBAColor &ambient, RGBAColor &diffuse, RGBAColor &emissive, RGBAColor &specular, float &specularExponent, float &transparency) override
Gets all color values of the material at once.
This class implements a container for an OpenGL ES shader program.
Definition: GLESShaderProgram.h:53
This class is the base class for all materials.
Definition: rendering/Material.h:49
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15