Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure

StelLight Struct Reference

Basic light source. More...

#include <StelLight.hpp>

List of all members.

Public Member Functions

bool operator== (const StelLight &rhs) const
 Is this light identical to another light?

Public Attributes

Vec3f position
 Position of the light.
Vec4f diffuse
 Difuse light color.
Vec4f ambient
 Ambient light color.

Detailed Description

Basic light source.

Used for lighting calculation when generating a lit sphere, and to pass light parameters to shaders.

(There is no builtin light functionality in StelRenderer - lights are done in shaders, or by manually setting vertex colors)

Definition at line 32 of file StelLight.hpp.

Member Function Documentation

bool StelLight::operator== ( const StelLight rhs  )  const [inline]

Is this light identical to another light?

Definition at line 42 of file StelLight.hpp.

Member Data Documentation

Ambient light color.

Definition at line 39 of file StelLight.hpp.

Difuse light color.

Definition at line 37 of file StelLight.hpp.

Position of the light.

Definition at line 35 of file StelLight.hpp.

The documentation for this struct was generated from the following file:
Generated on Thu Jan 31 14:05:45 2013 for Stellarium by  doxygen 1.6.3