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

BambooIsland Abgabe 2

- Main Page
- Related Pages
- Classes
- Files

- File List

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

    00001 /*
    00002  * header file for Shader class
    00003  * written by: christian moellinger <ch.moellinger@gmail.com>
    00004  * 10/2010
    00005  */
    00006
    00007 #ifndef __realtime_lu_shader_class
    00008 #define __realtime_lu_shader_class
    00009
    00010 #include "common_gl.h"
    00011
    00013
    00019 class Shader
    00020 {
    00021 private:
    00023     GLuint  m_nShaderId;
    00024
    00026     bool    m_bReadyForUse;
    00027
    00028 public:
    00030     void    activate();
    00031
    00033     GLint   getUniformLocation(const char *name);
    00034
    00036     GLint   getAttribLocation(const char *name);
    00037
    00039     GLuint  getShaderID() { return m_nShaderId; }
    00040
    00042     Shader(const char *vertexshader_filename, const char *fragmentshader_filename, const char *geometryshader_filename = 0);
    00043
    00044     //destructor
    00045     ~Shader();
    00046 };
    00047
    00048 #endif

All Classes Functions Variables Enumerations Enumerator