class DiffuseTextureAttribute
Defined in:
The C4Attributes.h
DiffuseTextureAttribute
class represents the material attribute for a diffuse texture map.
Definition
class DiffuseTextureAttribute final : public TextureAttribute
Constructor
explicit DiffuseTextureAttribute(const char *name);
explicit DiffuseTextureAttribute(Texture *texture);
DiffuseTextureAttribute(const TextureHeader *header, const void *image = nullptr);
Parameters
name |
The name of the texture map to load. |
texture |
The texture object to use. |
header |
A texture header from which to construct a new texture object. |
image |
A pointer to a texture image that is used if the texture header does not specify an offset to an image. |
Description
The DiffuseTextureAttribute
class represents the material attribute for a diffuse texture map. The diffuse texture map is applied during both the ambient rendering pass and each lighting pass.See the
TextureAttribute
class for a description of the differences among the various constructors.
Base Classes
TextureAttribute |
All attributes using a texture map are subclasses of TextureAttribute .
|