C4 Engine Terathon Software C4 Engine API Documentation

• Graphics Manager

API Links
Developer Links

class EnvironmentMapAttribute

Defined in:  C4Attributes.h
The EnvironmentMapAttribute class represents the material attribute for an environment map.
Definition

class EnvironmentMapAttribute : public MapAttribute

Constructor

explicit EnvironmentMapAttribute(const char *name);

explicit EnvironmentMapAttribute(Texture *texture);

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

See the MapAttribute class for a description of the differences among the various constructors.
Base Classes
MapAttribute All attributes using a texture map are subclasses of MapAttribute.