HyperspaceExplorer 0.7.1
Public Member Functions
LightOpenGL Class Reference

Implementation of a Light for OpenGL. More...

#include <Light.h>

Inheritance diagram for LightOpenGL:
Inheritance graph
[legend]
Collaboration diagram for LightOpenGL:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LightOpenGL (const LightSource &s)
 Construct a LightOpenGL from a LightSource definition.
virtual void render () const
 Set the light source into the scene.

Detailed Description

Implementation of a Light for OpenGL.


Member Function Documentation

void LightOpenGL::render ( ) const [virtual]

Set the light source into the scene.

Includes all OpenGL headers in a system-independent way.

Todo:
GL_LIGHT0 is hardcoded, make this variable. To quote from the OpenGL API docs: "It is always the case that GL_LIGHTi = GL_LIGHT0 + i."

Implements Light.

References Light::getAmbient(), Light::getDiffuse(), Light::getPosition(), and Light::getSpecular().

Referenced by C4DView::InitLight(), and C4DView::setLighting().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:18 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo