Developer Documentation
Loading...
Searching...
No Matches
ACG::SceneGraph::LightSourceHandle Class Reference

#include <Type-Light/ObjectTypes/Light/LightNode.hh>

Public Member Functions

GLenum getLight (LightNode *_node)
 
void removeLight (LightNode *_node)
 

Private Attributes

std::map< GLenum, LightNode * > lights_
 

Detailed Description

Assign a unique OpenGL light source identifier to each of the light source nodes in the scene. These relations are stored in a map. If there is no free light source left, return GL_INVALID_ENUM as light source enumerant.

Definition at line 337 of file LightNode.hh.

Constructor & Destructor Documentation

◆ LightSourceHandle()

ACG::SceneGraph::LightSourceHandle::LightSourceHandle ( )
inline

Definition at line 339 of file LightNode.hh.

Member Function Documentation

◆ getLight()

GLenum ACG::SceneGraph::LightSourceHandle::getLight ( LightNode _node)
inline

Definition at line 353 of file LightNode.hh.

◆ removeLight()

void ACG::SceneGraph::LightSourceHandle::removeLight ( LightNode _node)
inline

Definition at line 367 of file LightNode.hh.

Member Data Documentation

◆ lights_

std::map<GLenum, LightNode*> ACG::SceneGraph::LightSourceHandle::lights_
private

Definition at line 379 of file LightNode.hh.


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