NLS Engine  v0.1
The Next Logical Step in game engine design.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
Public Member Functions | Static Protected Attributes
GraphicsCore::LightDirectionalRenderable Class Reference
Inheritance diagram for GraphicsCore::LightDirectionalRenderable:
Inheritance graph
[legend]
Collaboration diagram for GraphicsCore::LightDirectionalRenderable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LightDirectionalRenderable (EntitySPTR, ModuleInterface *)
D3DXCOLOR GetDiffuseColor ()
 Get the Light Diffuse Color.
bool SetDiffuseColor (D3DXCOLOR)
 Set the Diffuse Color of the Light.
D3DXCOLOR GetSpecularColor ()
 Get the Light Specular Color.
bool SetSpecularColor (D3DXCOLOR)
 Set the Specular Color of the Light.
float GetRange (void)
bool SetRange (float)
void Render (LPDIRECT3DDEVICE9)
 Draws objects either in the world or on the screen, depending on the status of the current coordinate space.
D3DXVECTOR3 GetDirection (void)
bool SetDirection (D3DXVECTOR3)
int GetLightIndex () const

Static Protected Attributes

static int lightCount = 0

Detailed Description

Definition at line 14 of file LightDirectionalRenderable.h.


Member Function Documentation

Get the Light Diffuse Color.

Definition at line 36 of file LightDirectionalRenderable.cpp.

Get the Light Specular Color.

Definition at line 47 of file LightDirectionalRenderable.cpp.

void GraphicsCore::LightDirectionalRenderable::Render ( LPDIRECT3DDEVICE9  ) [virtual]

Draws objects either in the world or on the screen, depending on the status of the current coordinate space.

The object's location and rotation in said space is already provided, just draw at <0,0,0> and a 0 rotation - unless you need to correct for model problems.

Reimplemented from GraphicsCore::LightAmbientRenderable.

Reimplemented in GraphicsCore::LightPointRenderable.

Definition at line 75 of file LightDirectionalRenderable.cpp.

Set the Diffuse Color of the Light.

Definition at line 41 of file LightDirectionalRenderable.cpp.

Set the Specular Color of the Light.

Definition at line 52 of file LightDirectionalRenderable.cpp.


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