DisplayTextureHelper Class Reference

This reference page is linked to from the following overview topics: Porting Simple Material and Texture Map Plug-ins to Nitrous.



Detailed Description

Used for creating texture handles (TexHandle) and updating texture data managed by the viewport display system.

This class is implemented by the system and an instance of it is passed as parameter to ITextureDisplay::SetupTextures().

See also:
Class TexHandleMaker, Class ITextureDisplay.

#include <ITextureDisplay.h>

Inheritance diagram for DisplayTextureHelper:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void  UpdateTextureMapInfo (TimeValue t, ISimpleMaterial::MapUsage mapUsage, Texmap *texMap)=0
  Updates texture information used by the viewport display system.

Member Function Documentation

virtual void UpdateTextureMapInfo ( TimeValue  t,
ISimpleMaterial::MapUsage  mapUsage,
Texmap texMap 
) [pure virtual]

Updates texture information used by the viewport display system.

It extracts mapping channel and texture transform information from the provided Texmap. Client code needs to call this method in its implementation of ITextureDisplay::SetupTextures() for each texture map of a material or sub-texture of a texture map plug-in.

Parameters:
t The time at which the texture information is updated.
mapUsage The map usage which specifies which of the internal texture information will be updated.
texMap The texture map representing the source for the texture information update.

DisplayTextureHelper DisplayTextureHelper DisplayTextureHelper DisplayTextureHelper DisplayTextureHelper DisplayTextureHelper DisplayTextureHelper DisplayTextureHelper DisplayTextureHelper DisplayTextureHelper
DisplayTextureHelper DisplayTextureHelper DisplayTextureHelper DisplayTextureHelper DisplayTextureHelper DisplayTextureHelper DisplayTextureHelper DisplayTextureHelper DisplayTextureHelper DisplayTextureHelper