Isle
Loading...
Searching...
No Matches
TglImpl::LightImpl Class Reference

[AI] Implementation of Tgl::Light, wraps a Direct3DRMFrame2 and color data [AI] More...

#include <impl.h>

Inheritance diagram for TglImpl::LightImpl:
Collaboration diagram for TglImpl::LightImpl:

Public Types

typedef IDirect3DRMFrame2 * LightDataType
 [AI] Internal pointer to Direct3DRMFrame2 [AI] More...
 

Public Member Functions

 LightImpl ()
 [AI] Initializes light frame pointer [AI] More...
 
 ~LightImpl () override
 [AI] Frees resources on destruction [AI] More...
 
void * ImplementationDataPtr () override
 Returns Direct3DRMFrame2 implementation pointer [AI]. More...
 
Result SetTransformation (FloatMatrix4 &) override
 Sets transformation matrix for the light [AI]. More...
 
Result SetColor (float r, float g, float b) override
 Sets color for the light [AI]. More...
 
const LightDataTypeImplementationData () const
 Retrieves light pointer (const) [AI]. More...
 
LightDataTypeImplementationData ()
 Retrieves light pointer (mutable) [AI]. More...
 
void Destroy ()
 Frees resources for the light [AI]. More...
 
virtual Result SetTransformation (FloatMatrix4 &)=0
 [AI] Sets the transformation matrix for the light source. More...
 
virtual Result SetColor (float r, float g, float b)=0
 [AI] Sets the light's color. More...
 
- Public Member Functions inherited from Tgl::Object
virtual ~Object ()
 [AI] Destructor; releases resources. More...
 
virtual void * ImplementationDataPtr ()=0
 [AI] Returns a pointer to internal/implementation data, if any. More...
 

Friends

class RendererImpl
 

Detailed Description

[AI] Implementation of Tgl::Light, wraps a Direct3DRMFrame2 and color data [AI]

Definition at line 737 of file impl.h.

Member Typedef Documentation

◆ LightDataType

typedef IDirect3DRMFrame2* TglImpl::LightImpl::LightDataType

[AI] Internal pointer to Direct3DRMFrame2 [AI]

Definition at line 765 of file impl.h.

Constructor & Destructor Documentation

◆ LightImpl()

TglImpl::LightImpl::LightImpl ( )
inline

[AI] Initializes light frame pointer [AI]

Definition at line 740 of file impl.h.

◆ ~LightImpl()

TglImpl::LightImpl::~LightImpl ( )
inlineoverride

[AI] Frees resources on destruction [AI]

Definition at line 743 of file impl.h.

Member Function Documentation

◆ Destroy()

void TglImpl::LightImpl::Destroy ( )
inline

Frees resources for the light [AI].

Frees resources for the light if managed [AI].

Definition at line 804 of file impl.h.

◆ ImplementationData() [1/2]

LightDataType & TglImpl::LightImpl::ImplementationData ( )
inline

Retrieves light pointer (mutable) [AI].

Definition at line 777 of file impl.h.

◆ ImplementationData() [2/2]

const LightDataType & TglImpl::LightImpl::ImplementationData ( ) const
inline

Retrieves light pointer (const) [AI].

Definition at line 771 of file impl.h.

◆ ImplementationDataPtr()

void * LightImpl::ImplementationDataPtr ( )
overridevirtual

Returns Direct3DRMFrame2 implementation pointer [AI].

Implements Tgl::Object.

Definition at line 10 of file light.cpp.

◆ SetColor()

Result LightImpl::SetColor ( float  r,
float  g,
float  b 
)
overridevirtual

Sets color for the light [AI].

Parameters
rRed [AI]
gGreen [AI]
bBlue [AI]

Implements Tgl::Light.

Definition at line 24 of file light.cpp.

◆ SetTransformation()

Result LightImpl::SetTransformation ( FloatMatrix4 matrix)
overridevirtual

Sets transformation matrix for the light [AI].

Parameters
Transform4x4 transformation matrix [AI]

Implements Tgl::Light.

Definition at line 16 of file light.cpp.

Friends And Related Function Documentation

◆ RendererImpl

friend class RendererImpl
friend

Definition at line 784 of file impl.h.


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