CMaterial class Reference

Chapitre 2

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

CMaterial Class Reference

Cette classe représente les materiaux ainsi que les oéprations de base sur ces derniers. More...

#include <CMaterial.h>

Collaboration diagram for CMaterial:

Collaboration graph
[legend]
List of all members.

Public Methods

 CMaterial ()
 CMaterial (char *name, CColor specular, CColor diffuse, CColor ambient, CColor selfillum, float transmittivity, float reflectivity, float shininess=20.0f, float shinestrength=1.0f, bool permanent=true)
virtual ~CMaterial ()
__forceinline const char * GetName () const
__forceinline const CColorGetDiffuse () const
__forceinline const CColorGetSpecular () const
__forceinline const CColorGetAmbient () const
__forceinline const CColorGetSelfIllum () const
__forceinline const float GetShininess () const
__forceinline const float GetShinestStrength () const
__forceinline const float GetTransmittivity () const
__forceinline const float GetReflectivity () const
__forceinline bool GetPermanency () const
__forceinline void SetName (char *name)
__forceinline void SetSpecular (const CColor &specular)
__forceinline void SetDiffuse (const CColor &diffuse)
__forceinline void SetAmbient (const CColor &ambient)
__forceinline void SetSelfIllum (const CColor &selfIllum)
__forceinline void SetShininess (const float shininess)
__forceinline void SetShinesStrenght (const float sStrength)
__forceinline void SetTransparency (const float transmittivity)
__forceinline void SetReflectivity (const float reflectivity)
__forceinline void SetPermanency (const bool permanent)
__forceinline CMaterial InterpolateMaterials (const CMaterial &mat1, const CMaterial &mat2) const

Friends

__forceinline friend CMaterial operator * (const CMaterial &mat, const float multiple)
__forceinline friend CMaterial operator+ (const CMaterial &mat1, const CMaterial &mat2)
__forceinline friend void operator+= (CMaterial &mat1, const CMaterial &mat2)

Detailed Description

Cette classe représente les materiaux ainsi que les oéprations de base sur ces derniers.

Author:
Benoît Lemaire (aka DaRkWoLf)
Date:
19/04/2002


The documentation for this class was generated from the following file:
Generated on Fri Apr 19 16:19:35 2002 by doxygen1.2.15