reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

ofLight.h File Reference
#include "ofNode.h"
#include "ofShadow.h"

Go to the source code of this file.

Classes

class  ofLight
 
class  ofLight::Data
 

Typedefs

Variants
typedef ofColor_< unsigned char > ofColor
 A typedef representing an 8-bit (unsigned char) RGBA color.
 
typedef ofColor_< float > ofFloatColor
 A typedef representing a floating (float) point RGBA color.
 
typedef ofColor_< unsigned short > ofShortColor
 A typedef representing a 16-bit (unsigned short) RGBA color.
 

Enumerations

enum  ofLightType { OF_LIGHT_POINT =0 , OF_LIGHT_DIRECTIONAL =1 , OF_LIGHT_SPOT =2 , OF_LIGHT_AREA =3 }
 

Functions

void ofEnableLighting ()
 
void ofDisableLighting ()
 
void ofEnableSeparateSpecularLight ()
 
void ofDisableSeparateSpecularLight ()
 
bool ofGetLightingEnabled ()
 
void ofSetSmoothLighting (bool b)
 
void ofSetGlobalAmbientColor (const ofFloatColor &c)
 
const ofFloatColorofGetGlobalAmbientColor ()
 
std::vector< std::weak_ptr< ofLight::Data > > & ofLightsData ()
 

Typedef Documentation

◆ ofColor

A typedef representing an 8-bit (unsigned char) RGBA color.

◆ ofFloatColor

A typedef representing a floating (float) point RGBA color.

◆ ofShortColor

A typedef representing a 16-bit (unsigned short) RGBA color.

Enumeration Type Documentation

◆ ofLightType

Enumerator
OF_LIGHT_POINT 
OF_LIGHT_DIRECTIONAL 
OF_LIGHT_SPOT 
OF_LIGHT_AREA 

Function Documentation

◆ ofDisableLighting()

void ofDisableLighting ( )

◆ ofDisableSeparateSpecularLight()

void ofDisableSeparateSpecularLight ( )

◆ ofEnableLighting()

void ofEnableLighting ( )

◆ ofEnableSeparateSpecularLight()

void ofEnableSeparateSpecularLight ( )

◆ ofGetGlobalAmbientColor()

const ofFloatColor & ofGetGlobalAmbientColor ( )

◆ ofGetLightingEnabled()

bool ofGetLightingEnabled ( )

◆ ofLightsData()

std::vector< std::weak_ptr< ofLight::Data > > & ofLightsData ( )

◆ ofSetGlobalAmbientColor()

void ofSetGlobalAmbientColor ( const ofFloatColor c)

◆ ofSetSmoothLighting()

void ofSetSmoothLighting ( bool  b)