Go to the documentation of this file.00001 #pragma once
00002
00003
00004 #define NOMINMAX
00005 #include <windows.h>
00006 #include "glew.h"
00007 #include "constants.h"
00008 #include "GShader.h"
00009 #include "GcgShader.h"
00010 #include "GcgEffect.h"
00011 #include "GcgVertexShader.h"
00012 #include "GSingletonManager.h"
00013 #include <string>
00014 #include <map>
00015 #include <cg\cg.h>
00016 #include <cg\cggl.h>
00017
00018 using namespace std;
00019
00020 class GShaderManager: public GSingletonManager<GShaderManager>
00021 {
00022 protected:
00023 bool initalized;
00024
00025 CGcontext cgContext;
00026 public:
00027 map<string, GShader *> shaders;
00028
00029 GShaderManager();
00030 ~GShaderManager();
00031
00032 int Load(string name, string path, int FLAGS);
00033 int Unload();
00034 int EnableShader(string name);
00035 int DisableShader(string name);
00036 };