PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
Loading...
Searching...
No Matches
PureMaterial::PureMaterialImpl Class Reference

Detailed Description

Definition at line 37 of file PureMaterialImpl.h.

#include <PureMaterialImpl.h>

Public Member Functions

virtual ~PureMaterialImpl ()
 
TPureBool allocateArrays (TPureUInt nColorCount, TPureUInt nTexcoordCount, TPureUInt nIndexCount, TPureUInt nIndexSize)
 
TPureUInt getColorsCount (TPureUInt level=0) const
 
TRGBAFLOATgetColors (TPureUInt level=0)
 
const TRGBAFLOATgetColors (TPureUInt level=0) const
 
TPureUInt getIndicesCount () const
 
TPureUInt getTexcoordsCount (TPureUInt level=0) const
 
TUVWgetTexcoords (TPureUInt level=0)
 
const TUVWgetTexcoords (TPureUInt level=0) const
 
TPureUInt getTextureCount () const
 
PureTexturegetTexture (TPureUInt level=0)
 
const PureTexturegetTexture (TPureUInt level=0) const
 
TPureBool setTexture (PureTexture *tex, TPureUInt level=0)
 
TPureBool isTextured () const
 
TPureBool isSingleTextured () const
 
TPureBool isMultiTextured () const
 
PureColorgetTextureEnvColor (TPureUInt level=0)
 
const PureColorgetTextureEnvColor (TPureUInt level=0) const
 
const TPureBoolisDecalOffsetEnabled () const
 
void setDecalOffset (TPureBool state)
 
TPURE_BLENDFACTOR getSourceBlendFunc (TPureUInt level=0) const
 
TPureBool setSourceBlendFunc (TPURE_BLENDFACTOR value, TPureUInt level=0)
 
TPURE_BLENDFACTOR getDestinationBlendFunc (TPureUInt level=0) const
 
TPureBool setDestinationBlendFunc (TPURE_BLENDFACTOR value, TPureUInt level=0)
 
TPureBool setBlendFuncs (TPURE_BLENDFACTOR src, TPURE_BLENDFACTOR dst, TPureUInt level=0)
 
TPURE_BLENDMODE getBlendMode (TPureUInt level=0) const
 
TPureBool setBlendMode (TPURE_BLENDMODE mode, TPureUInt level=0)
 
TPureBool copyFromMaterial (PureMaterial &srcMat, TPureUInt dstLevel, TPureUInt srcLevel)
 
TPureUInt getUsedSystemMemory () const
 

Protected Member Functions

 PureMaterialImpl (PureMaterial *owner, TPureUInt nLayers=1)
 
 PureMaterialImpl (const PureMaterialImpl &)
 
PureMaterialImploperator= (const PureMaterialImpl &)
 

Private Attributes

PureMaterial_pOwner
 The owner public object who creates this pimpl object.
 
TPureUInt nIndices
 Number of indices.
 
TPureUInt m_nIndexSize
 Size of an index.
 
PureColor clrAmbientFrontFace
 
PureColor clrAmbientBackFace
 
PureColor clrDiffuseFrontFace
 
PureColor clrDiffuseBackFace
 
PureColor clrSpecularFrontFace
 
PureColor clrSpecularBackFace
 
PureColor clrEmissionFrontFace
 
PureColor clrEmissionBackFace
 
TPureFloat fShininessFrontFace
 
TPureFloat fShininessBackFace
 
std::vector< TPURE_MATERIAL_LAYERlayers
 
TPureBool bDecalOffset
 

Friends

class PureMaterial
 
class PureMaterialManager
 

Constructor & Destructor Documentation

◆ ~PureMaterialImpl()

PureMaterial::PureMaterialImpl::~PureMaterialImpl ( )
virtual

Definition at line 47 of file PureMaterial.cpp.

◆ PureMaterialImpl() [1/2]

PureMaterial::PureMaterialImpl::PureMaterialImpl ( PureMaterial * owner,
TPureUInt nLayers = 1 )
explicitprotected
Exceptions
Anyexception that might be thrown by std::vector::push_back(), in case of failure the exception is not handled but propagated to caller.

Definition at line 459 of file PureMaterial.cpp.

◆ PureMaterialImpl() [2/2]

PureMaterial::PureMaterialImpl::PureMaterialImpl ( const PureMaterialImpl & )
protected

Definition at line 494 of file PureMaterial.cpp.

Member Function Documentation

◆ allocateArrays()

TPureBool PureMaterial::PureMaterialImpl::allocateArrays ( TPureUInt nColorCount,
TPureUInt nTexcoordCount,
TPureUInt nIndexCount,
TPureUInt nIndexSize )

Definition at line 66 of file PureMaterial.cpp.

◆ copyFromMaterial()

TPureBool PureMaterial::PureMaterialImpl::copyFromMaterial ( PureMaterial & srcMat,
TPureUInt dstLevel,
TPureUInt srcLevel )

Definition at line 410 of file PureMaterial.cpp.

◆ getBlendMode()

TPURE_BLENDMODE PureMaterial::PureMaterialImpl::getBlendMode ( TPureUInt level = 0) const

Definition at line 376 of file PureMaterial.cpp.

◆ getColors() [1/2]

TRGBAFLOAT * PureMaterial::PureMaterialImpl::getColors ( TPureUInt level = 0)

Definition at line 123 of file PureMaterial.cpp.

◆ getColors() [2/2]

const TRGBAFLOAT * PureMaterial::PureMaterialImpl::getColors ( TPureUInt level = 0) const

Definition at line 135 of file PureMaterial.cpp.

◆ getColorsCount()

TPureUInt PureMaterial::PureMaterialImpl::getColorsCount ( TPureUInt level = 0) const

Definition at line 111 of file PureMaterial.cpp.

◆ getDestinationBlendFunc()

TPURE_BLENDFACTOR PureMaterial::PureMaterialImpl::getDestinationBlendFunc ( TPureUInt level = 0) const

Definition at line 329 of file PureMaterial.cpp.

◆ getIndicesCount()

TPureUInt PureMaterial::PureMaterialImpl::getIndicesCount ( ) const

Definition at line 147 of file PureMaterial.cpp.

◆ getSourceBlendFunc()

TPURE_BLENDFACTOR PureMaterial::PureMaterialImpl::getSourceBlendFunc ( TPureUInt level = 0) const

Definition at line 289 of file PureMaterial.cpp.

◆ getTexcoords() [1/2]

TUVW * PureMaterial::PureMaterialImpl::getTexcoords ( TPureUInt level = 0)

Definition at line 165 of file PureMaterial.cpp.

◆ getTexcoords() [2/2]

const TUVW * PureMaterial::PureMaterialImpl::getTexcoords ( TPureUInt level = 0) const

Definition at line 177 of file PureMaterial.cpp.

◆ getTexcoordsCount()

TPureUInt PureMaterial::PureMaterialImpl::getTexcoordsCount ( TPureUInt level = 0) const

Definition at line 153 of file PureMaterial.cpp.

◆ getTexture() [1/2]

PureTexture * PureMaterial::PureMaterialImpl::getTexture ( TPureUInt level = 0)

Definition at line 189 of file PureMaterial.cpp.

◆ getTexture() [2/2]

const PureTexture * PureMaterial::PureMaterialImpl::getTexture ( TPureUInt level = 0) const

Definition at line 201 of file PureMaterial.cpp.

◆ getTextureCount()

TPureUInt PureMaterial::PureMaterialImpl::getTextureCount ( ) const

Definition at line 224 of file PureMaterial.cpp.

◆ getTextureEnvColor() [1/2]

PureColor & PureMaterial::PureMaterialImpl::getTextureEnvColor ( TPureUInt level = 0)

Definition at line 253 of file PureMaterial.cpp.

◆ getTextureEnvColor() [2/2]

const PureColor & PureMaterial::PureMaterialImpl::getTextureEnvColor ( TPureUInt level = 0) const

Definition at line 265 of file PureMaterial.cpp.

◆ getUsedSystemMemory()

TPureUInt PureMaterial::PureMaterialImpl::getUsedSystemMemory ( ) const

Definition at line 446 of file PureMaterial.cpp.

◆ isDecalOffsetEnabled()

const TPureBool & PureMaterial::PureMaterialImpl::isDecalOffsetEnabled ( ) const

Definition at line 277 of file PureMaterial.cpp.

◆ isMultiTextured()

TPureBool PureMaterial::PureMaterialImpl::isMultiTextured ( ) const

Definition at line 247 of file PureMaterial.cpp.

◆ isSingleTextured()

TPureBool PureMaterial::PureMaterialImpl::isSingleTextured ( ) const

Definition at line 241 of file PureMaterial.cpp.

◆ isTextured()

TPureBool PureMaterial::PureMaterialImpl::isTextured ( ) const

Definition at line 235 of file PureMaterial.cpp.

◆ operator=()

PureMaterial::PureMaterialImpl & PureMaterial::PureMaterialImpl::operator= ( const PureMaterialImpl & )
protected

Definition at line 500 of file PureMaterial.cpp.

◆ setBlendFuncs()

TPureBool PureMaterial::PureMaterialImpl::setBlendFuncs ( TPURE_BLENDFACTOR src,
TPURE_BLENDFACTOR dst,
TPureUInt level = 0 )

Definition at line 369 of file PureMaterial.cpp.

◆ setBlendMode()

TPureBool PureMaterial::PureMaterialImpl::setBlendMode ( TPURE_BLENDMODE mode,
TPureUInt level = 0 )

Definition at line 396 of file PureMaterial.cpp.

◆ setDecalOffset()

void PureMaterial::PureMaterialImpl::setDecalOffset ( TPureBool state)

Definition at line 283 of file PureMaterial.cpp.

◆ setDestinationBlendFunc()

TPureBool PureMaterial::PureMaterialImpl::setDestinationBlendFunc ( TPURE_BLENDFACTOR value,
TPureUInt level = 0 )

Definition at line 341 of file PureMaterial.cpp.

◆ setSourceBlendFunc()

TPureBool PureMaterial::PureMaterialImpl::setSourceBlendFunc ( TPURE_BLENDFACTOR value,
TPureUInt level = 0 )

Definition at line 301 of file PureMaterial.cpp.

◆ setTexture()

TPureBool PureMaterial::PureMaterialImpl::setTexture ( PureTexture * tex,
TPureUInt level = 0 )

Definition at line 213 of file PureMaterial.cpp.

Friends And Related Symbol Documentation

◆ PureMaterial

friend class PureMaterial
friend

Definition at line 136 of file PureMaterialImpl.h.

◆ PureMaterialManager

friend class PureMaterialManager
friend

Definition at line 137 of file PureMaterialImpl.h.

Member Data Documentation

◆ _pOwner

PureMaterial* PureMaterial::PureMaterialImpl::_pOwner
private

The owner public object who creates this pimpl object.

Definition at line 117 of file PureMaterialImpl.h.

◆ bDecalOffset

TPureBool PureMaterial::PureMaterialImpl::bDecalOffset
private

Definition at line 132 of file PureMaterialImpl.h.

◆ clrAmbientBackFace

PureColor PureMaterial::PureMaterialImpl::clrAmbientBackFace
private

Definition at line 122 of file PureMaterialImpl.h.

◆ clrAmbientFrontFace

PureColor PureMaterial::PureMaterialImpl::clrAmbientFrontFace
private

Definition at line 121 of file PureMaterialImpl.h.

◆ clrDiffuseBackFace

PureColor PureMaterial::PureMaterialImpl::clrDiffuseBackFace
private

Definition at line 124 of file PureMaterialImpl.h.

◆ clrDiffuseFrontFace

PureColor PureMaterial::PureMaterialImpl::clrDiffuseFrontFace
private

Definition at line 123 of file PureMaterialImpl.h.

◆ clrEmissionBackFace

PureColor PureMaterial::PureMaterialImpl::clrEmissionBackFace
private

Definition at line 128 of file PureMaterialImpl.h.

◆ clrEmissionFrontFace

PureColor PureMaterial::PureMaterialImpl::clrEmissionFrontFace
private

Definition at line 127 of file PureMaterialImpl.h.

◆ clrSpecularBackFace

PureColor PureMaterial::PureMaterialImpl::clrSpecularBackFace
private

Definition at line 126 of file PureMaterialImpl.h.

◆ clrSpecularFrontFace

PureColor PureMaterial::PureMaterialImpl::clrSpecularFrontFace
private

Definition at line 125 of file PureMaterialImpl.h.

◆ fShininessBackFace

TPureFloat PureMaterial::PureMaterialImpl::fShininessBackFace
private

Definition at line 130 of file PureMaterialImpl.h.

◆ fShininessFrontFace

TPureFloat PureMaterial::PureMaterialImpl::fShininessFrontFace
private

Definition at line 129 of file PureMaterialImpl.h.

◆ layers

std::vector<TPURE_MATERIAL_LAYER> PureMaterial::PureMaterialImpl::layers
private

Definition at line 131 of file PureMaterialImpl.h.

◆ m_nIndexSize

TPureUInt PureMaterial::PureMaterialImpl::m_nIndexSize
private

Size of an index.

Definition at line 120 of file PureMaterialImpl.h.

◆ nIndices

TPureUInt PureMaterial::PureMaterialImpl::nIndices
private

Number of indices.

Definition at line 119 of file PureMaterialImpl.h.


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