BambooIsland: C:/Users/easterbunny/Desktop/Echtzeitgraphik-LU/trunk/src/LightManager.h Source File

BambooIsland Abgabe 2

- Main Page
- Related Pages
- Classes
- Files

- File List

# C:/Users/easterbunny/Desktop/Echtzeitgraphik-LU/trunk/src/LightManager.h

    00001 /*
    00002  * header file for LightManager class
    00003  * written by: christian moellinger <ch.moellinger@gmail.com>
    00004  * 01/2011
    00005  */
    00006
    00007 #pragma once
    00008
    00009 #ifndef __realtime_lu_lightmanager_class
    00010 #define __realtime_lu_lightmanager_class
    00011
    00012 #include <glm/glm.hpp>
    00013
    00014 #include "common_gl.h"
    00015 #include "Shader.h"
    00016
    00017 class LightManager
    00018 {
    00019 private:
    00020     glm::vec3 m_v3LightPosition;
    00021
    00022     void updateLightPosition();
    00023
    00024     LightManager();
    00025 public:
    00027     static LightManager *instance();
    00028
    00029     float *getCurrentLightPosition() const;
    00030     glm::vec3 getCurrentLightPositionAsVec3() const;
    00031     glm::vec4 getCurrentLightPositionAsVec4() const;
    00032 };
    00033
    00034 #endif

All Classes Functions Variables Enumerations Enumerator