Facebook Twitter YouTube

class EnvironmentTextureAttribute

Defined in:  TSAttributes.h
The EnvironmentTextureAttribute class represents the material attribute for an environment texture map.
Definition

class EnvironmentTextureAttribute final : public TextureAttribute

Constructor

explicit EnvironmentTextureAttribute(const char *name);

explicit EnvironmentTextureAttribute(Texture *texture);

EnvironmentTextureAttribute(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 EnvironmentTextureAttribute class represents the material attribute for an environment texture map. If this attribute appears in a renderable object's attribute list, then it overrides any external environment map. The environment texture map is applied only during the ambient rendering 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.