Easy3D 2.6.1
Loading...
Searching...
No Matches
State::Material Struct Reference

#include <state.h>

Public Member Functions

 Material ()=default
 Default constructor.
 
 Material (const vec4 &ambi, const vec4 &spec, float shin)
 Parameterized constructor.
 

Public Attributes

vec4 ambient
 Ambient color.
 
vec4 specular
 Specular color.
 
float shininess
 Specular power.
 

Detailed Description

Material definition.

Constructor & Destructor Documentation

◆ Material() [1/2]

Material ( )
default

Default constructor.

Initializes the Material object with default values.

◆ Material() [2/2]

Material ( const vec4 & ambi,
const vec4 & spec,
float shin )

Parameterized constructor.

Parameters
ambiThe ambient color.
specThe specular color.
shinThe shininess value.

Initializes the Material object with the given ambient color, specular color, and shininess value.


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