# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::UMaterial Class Reference

Game Interface for Material. More...

#include <u_material.h>

Inheritance diagram for NL3D::UMaterial

Inheritance graph
[legend]
List of all members.

Public Types

enum  ZFunc {
  always = 0,
  never,
  equal,
  notequal,
  less,
  lessequal,
  greater,
  greaterequal,
  zfuncCount
}
enum  TBlend {
  one = 0,
  zero,
  srcalpha,
  invsrcalpha,
  srccolor,
  invsrccolor,
  blendCount
}

Public Methods

virtual void setTexture (UTexture* ptex) = 0
virtual bool texturePresent () = 0
virtual void setBlend (bool active) = 0
virtual void setBlendFunc (TBlend src, TBlend dst) = 0
virtual void setSrcBlend (TBlend val) = 0
virtual void setDstBlend (TBlend val) = 0
virtual bool getBlend () const = 0
virtual TBlend getSrcBlend (void) const = 0
virtual TBlend getDstBlend (void) const = 0
virtual void setZFunc (ZFunc val) = 0
virtual void setZWrite (bool active) = 0
virtual void setZBias (float val) = 0
virtual ZFunc getZFunc (void) const = 0
virtual bool getZWrite (void) const = 0
virtual float getZBias (void) const = 0
virtual void setColor (CRGBA rgba) = 0
 The Color is used only if lighting is disabled. Also, color is replaced by per vertex color (if any).

virtual CRGBA getColor (void) const = 0
virtual void initUnlit () = 0
 Init the material as unlit. More...


Protected Methods

 UMaterial ()
virtual ~UMaterial ()

Detailed Description

Game Interface for Material.

Material for gamers are Unlighted materials!! There is only One texture stage.

Author(s):
Lionel Berenguier , Nevrax France
Date:
2001

Definition at line 49 of file u_material.h.


Member Enumeration Documentation

enum NL3D::UMaterial::TBlend
 

Enumeration values:
one  
zero  
srcalpha  
invsrcalpha  
srccolor  
invsrccolor  
blendCount  

Definition at line 61 of file u_material.h.

enum NL3D::UMaterial::ZFunc
 

Enumeration values:
always  
never  
equal  
notequal  
less  
lessequal  
greater  
greaterequal  
zfuncCount  

Definition at line 60 of file u_material.h.


Constructor & Destructor Documentation

NL3D::UMaterial::UMaterial ( ) [inline, protected]
 

Definition at line 55 of file u_material.h.

NL3D::UMaterial::~UMaterial ( ) [inline, protected, virtual]
 

Definition at line 56 of file u_material.h.


Member Function Documentation

virtual bool NL3D::UMaterial::getBlend ( ) const [pure virtual]
 

Reimplemented in NL3D::CMaterialUser.

virtual CRGBA NL3D::UMaterial::getColor ( void ) const [pure virtual]
 

Reimplemented in NL3D::CMaterialUser.

virtual TBlend NL3D::UMaterial::getDstBlend ( void ) const [pure virtual]
 

Reimplemented in NL3D::CMaterialUser.

virtual TBlend NL3D::UMaterial::getSrcBlend ( void ) const [pure virtual]
 

Reimplemented in NL3D::CMaterialUser.

virtual float NL3D::UMaterial::getZBias ( void ) const [pure virtual]
 

Reimplemented in NL3D::CMaterialUser.

virtual ZFunc NL3D::UMaterial::getZFunc ( void ) const [pure virtual]
 

Reimplemented in NL3D::CMaterialUser.

virtual bool NL3D::UMaterial::getZWrite ( void ) const [pure virtual]
 

Reimplemented in NL3D::CMaterialUser.

void NL3D::UMaterial::initUnlit ( ) [pure virtual]
 

Init the material as unlit.

normal shader, no lighting .... Default to: normal shader, no lighting, color to White(1,1,1,1), no texture, ZBias=0, ZFunc= lessequal, ZWrite==true, no blend. All other states are undefined (such as blend function, since blend is disabled).

Reimplemented in NL3D::CMaterialUser.

void NL3D::UMaterial::setBlend ( bool active ) [pure virtual]
 

Reimplemented in NL3D::CMaterialUser.

virtual void NL3D::UMaterial::setBlendFunc ( TBlend src,
TBlend dst ) [pure virtual]
 

Reimplemented in NL3D::CMaterialUser.

void NL3D::UMaterial::setColor ( CRGBA rgba ) [pure virtual]
 

The Color is used only if lighting is disabled. Also, color is replaced by per vertex color (if any).

Reimplemented in NL3D::CMaterialUser.

virtual void NL3D::UMaterial::setDstBlend ( TBlend val ) [pure virtual]
 

Reimplemented in NL3D::CMaterialUser.

virtual void NL3D::UMaterial::setSrcBlend ( TBlend val ) [pure virtual]
 

Reimplemented in NL3D::CMaterialUser.

void NL3D::UMaterial::setTexture ( UTexture * ptex ) [pure virtual]
 

Reimplemented in NL3D::CMaterialUser.

virtual void NL3D::UMaterial::setZBias ( float val ) [pure virtual]
 

Reimplemented in NL3D::CMaterialUser.

void NL3D::UMaterial::setZFunc ( ZFunc val ) [pure virtual]
 

Reimplemented in NL3D::CMaterialUser.

virtual void NL3D::UMaterial::setZWrite ( bool active ) [pure virtual]
 

Reimplemented in NL3D::CMaterialUser.

virtual bool NL3D::UMaterial::texturePresent ( ) [pure virtual]
 

Reimplemented in NL3D::CMaterialUser.


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