AnimEngine
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
OOOGL::WavefrontObjPhongMaterial Class Reference
Inheritance diagram for OOOGL::WavefrontObjPhongMaterial:
Inheritance graph
[legend]
Collaboration diagram for OOOGL::WavefrontObjPhongMaterial:
Collaboration graph
[legend]

Public Member Functions

virtual void configureShader (GLuint program) const override
 
virtual void configureShader (GLuint program, GLuint textured_binding_offset) const
 
virtual void uploadUniforms (GLuint pid) const override
 
virtual const GLSLBlockLayoutConstPtr getMaterialGLSLLayout () const override
 
virtual bool hasAttribute (const std::string &attr_name) const override
 
virtual const MaterialAttributegetAttribute (const std::string &attr_name) const override
 
virtual void setAttribute (const std::string &attr_name, const MaterialAttribute &attr) override
 
GLuint autoBindTextures (GLuint program, GLuint texture_binding_offset=0) const
 
void bindTexturesExplicit (GLuint map_Ka_index, GLuint map_Kd_index, GLuint map_Ks_index, GLuint map_bump_index, GLuint map_d_index, GLuint map_disp_index) const
 
- Public Member Functions inherited from OOOGL::ObjectTag
virtual const std::string & getTag () const
 
virtual void setTag (const std::string &tag)
 

Static Public Member Functions

static const GLSLBlockLayoutConstPtr getMaterialGLSLLayout_static ()
 

Protected Attributes

std::unordered_map< std::string, MaterialAttribute_attributes
 
- Protected Attributes inherited from OOOGL::ObjectTag
std::string tag
 

Member Data Documentation

◆ _attributes

std::unordered_map<std::string, MaterialAttribute> OOOGL::WavefrontObjPhongMaterial::_attributes
protected
Initial value:
= {
{"Ka", MaterialAttribute(glm::vec3())},
{"Kd", MaterialAttribute(glm::vec3())},
{"Ks", MaterialAttribute(glm::vec3())},
{"Ns", MaterialAttribute(0.0f)},
{"d", MaterialAttribute(0.0f)},
{"illum", MaterialAttribute(0)},
{"map_Ka", MaterialAttribute(OptionalSimpleTexture2D())},
{"map_Kd", MaterialAttribute(OptionalSimpleTexture2D())},
{"map_Ks", MaterialAttribute(OptionalSimpleTexture2D())},
{"map_bump", MaterialAttribute(OptionalSimpleTexture2D())},
{"map_d", MaterialAttribute(OptionalSimpleTexture2D())},
{"map_disp", MaterialAttribute(OptionalSimpleTexture2D())}
}

The documentation for this class was generated from the following files: