"L. Spiro Engine"
Public Member Functions | Static Protected Member Functions

lsd::CLambertMaterial Class Reference

Lambert material. More...

#include <LSDLambertMaterial.h>

Inheritance diagram for lsd::CLambertMaterial:
lsd::CMaterial

List of all members.

Public Member Functions

virtual LSSTD_ERRORS LSE_CALL LoadFromStream (const lsstd::IStream &_sStream, CAllocator *_paAllocator, LSUINT32 _ui32Version)
virtual LSD_MATERIAL_TYPE LSE_CALL GetType () const

Static Protected Member Functions

static LSSTD_ERRORS LSE_CALL LoadColor (const lsstd::IStream &_sStream, LSD_COLOR &_cRet)
static LSBOOL LSE_CALL ReadString (const lsstd::IStream &_sStream, CString &_sRet)

Detailed Description

Lambert material.

Class CLambertMaterial Description: Lambert material. It is really the default for all materials.


Member Function Documentation

virtual LSD_MATERIAL_TYPE LSE_CALL lsd::CLambertMaterial::GetType ( ) const [virtual]

Get the material type.

Returns:
Returns the type of this material.

Implements lsd::CMaterial.

static LSSTD_ERRORS LSE_CALL lsd::CLambertMaterial::LoadColor ( const lsstd::IStream _sStream,
LSD_COLOR _cRet 
) [static, protected]

Load a color from the given stream.

Parameters:
_sStreamThe stream from which to load color data.
_cRetThe location where the loaded color data is stored.
Returns:
Returns an error code indicating the type of error or success.
virtual LSSTD_ERRORS LSE_CALL lsd::CLambertMaterial::LoadFromStream ( const lsstd::IStream _sStream,
CAllocator *  _paAllocator,
LSUINT32  _ui32Version 
) [virtual]

Load material data from a stream.

Parameters:
_sStreamThe stream from which to load material data.
_paAllocatorThe allocator to use for all data allocated by this object.
_ui32VersionFile version.
Returns:
Returns an error code indicating the type of error or success.

Implements lsd::CMaterial.

static LSBOOL LSE_CALL lsd::CLambertMaterial::ReadString ( const lsstd::IStream _sStream,
CString &  _sRet 
) [static, protected]

Read a string from a stream.

Parameters:
_sStreamThe stream from which to read a string.
_sRetThe returned string.
Returns:
Returns true if there was enough memory to complete the operation.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator