#include <ThingSpotlight.h>
Inherits ThingLight.
Inheritance diagram for ThingSpotlight:
Public Member Functions | |
ThingSpotlight (float x_direction, float y_direction, float z_direction) | |
constructor, direction can be set directly in the constructor | |
~ThingSpotlight (void) | |
void | setSpotDirection (float x, float y, float z) |
set the direction of the spotlight | |
void | setSpotExponent (float exp) |
set the exponent of the spotlight | |
void | setSpotCutoff (float cutoffAngle) |
set the cutoff angle of the light cone | |
Transform * | getSpotDirection () |
get the spot direction | |
float | getSpotExponent () |
get the spot exponent | |
float | getSpotCutoff () |
get the cutoff angle of the light cone | |
void | init () |
initialize the spotlight, should be called in at last method from setting the light up in the openGL init() | |
void | render () |
render the spotlight (e.g. Transformation and enabling/disabling), should be called in the openGL display() method | |
void | setThingTransform (Thing *ttrans) |
void | setLightPosition () |
Public Attributes | |
int | light |
Private Attributes | |
ThingTransform * | tt |
Transform | direction |
float | position [4] |
float | exponent |
float | angle |
|
constructor, direction can be set directly in the constructor
|
|
|
|
get the cutoff angle of the light cone
|
|
get the spot direction
|
|
get the spot exponent
|
|
initialize the spotlight, should be called in at last method from setting the light up in the openGL init()
Reimplemented from ThingLight.
|
|
render the spotlight (e.g. Transformation and enabling/disabling), should be called in the openGL display() method
Reimplemented from ThingLight.
|
|
|
|
set the cutoff angle of the light cone
|
|
set the direction of the spotlight
|
|
set the exponent of the spotlight
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from ThingLight.
|
|
|