Neo  0.5.0
Developer Documentation
Neo::TexturePass Class Reference

The texture pass class implements some basic primitives to manage and use multi-texture materials. More...

#include <Material.h>

Public Member Functions

 TexturePass (Texture *texture, TEX_COMBINE_MODES combineMode, unsigned int mapChannel)
 
 TexturePass (const TexturePass &texturePass)
 
void setMapChannel (unsigned int mapChannel)
 Sets the map channel. More...
 
void setTexture (Texture *texture)
 Sets the texture to use. More...
 
unsigned int getMapChannel (void)
 Returns the map channel. More...
 
TexturegetTexture (void)
 Returns the texture that is used. More...
 
void setCombineMode (TEX_COMBINE_MODES combineMode)
 Sets the combine mode when using multiple passes for one material. More...
 
TEX_COMBINE_MODES getCombineMode (void)
 Returns the combine mode. More...
 

Detailed Description

The texture pass class implements some basic primitives to manage and use multi-texture materials.

Examples for texture passes are the diffuse texture, normal map and specular map.

Constructor & Destructor Documentation

Neo::TexturePass::TexturePass ( Texture texture,
TEX_COMBINE_MODES  combineMode,
unsigned int  mapChannel 
)
inline
Neo::TexturePass::TexturePass ( const TexturePass texturePass)
inline

Member Function Documentation

TEX_COMBINE_MODES Neo::TexturePass::getCombineMode ( void  )
inline

Returns the combine mode.

Returns
The combine modes.
See also
TEX_COMBINE_MODES
unsigned int Neo::TexturePass::getMapChannel ( void  )
inline

Returns the map channel.

Returns
The map channel.
Texture* Neo::TexturePass::getTexture ( void  )
inline

Returns the texture that is used.

Returns
The texture.
void Neo::TexturePass::setCombineMode ( TEX_COMBINE_MODES  combineMode)
inline

Sets the combine mode when using multiple passes for one material.

Parameters
combineModeThe combine mode.
See also
TEX_COMBINE_MODES
void Neo::TexturePass::setMapChannel ( unsigned int  mapChannel)
inline

Sets the map channel.

Parameters
mapChannelThe new map channel.
void Neo::TexturePass::setTexture ( Texture texture)
inline

Sets the texture to use.

Parameters
textureThe texture.

The documentation for this class was generated from the following file: