glc_selectionmaterial.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00025
00026 #ifndef GLC_SELECTIONMATERIAL_H_
00027 #define GLC_SELECTIONMATERIAL_H_
00028
00029 #include <QColor>
00030 #include <QtOpenGL>
00031 #include "../glc_ext.h"
00032 #include "glc_shader.h"
00033
00034 #include "../glc_config.h"
00035
00038
00040
00041
00042 class GLC_LIB_EXPORT GLC_SelectionMaterial
00043 {
00044 private:
00045 GLC_SelectionMaterial();
00046
00048
00050
00051 public:
00053 static void glExecute();
00055 inline static void initShader() {m_SelectionShader.createAndCompileProgrammShader();}
00057 static void deleteShader();
00059 inline static void setShaders(QFile& vertex, QFile& fragment)
00060 {m_SelectionShader.setVertexAndFragmentShader(vertex, fragment);}
00062 inline static void useShader() {m_SelectionShader.use();}
00064 inline static void unUseShader() {m_SelectionShader.unuse();}
00065
00067
00069
00071
00072 private:
00074 static GLC_Shader m_SelectionShader;
00075
00076 };
00077
00078 #endif