Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 263 vs 264 for /trunk/Source Code/Managers/Headers/ShaderManager.h

Diff revisions: vs.
  @@ -31,6 +31,7 @@
31 31 #include <string>
32 32 #include <stack>
33 33
34 + class Kernel;
34 35 class Shader;
35 36 class ShaderProgram;
36 37 enum ShaderType;
  @@ -45,7 +46,7 @@
45 46
46 47 public:
47 48 ///Create rendering API specific initialization of shader libraries
48 - bool init();
49 + bool init(Kernel* const activeKernel);
49 50 void Destroy();
50 51 ///Called once per frame
51 52 U8 update(const U64 deltaTime);
  @@ -78,6 +79,8 @@
78 79
79 80 void updateClipPlanes();
80 81
82 + void updateCamera();
83 +
81 84 private:
82 85 ///Shader cache
83 86 ShaderMap _shaderNameMap;
  @@ -94,7 +97,8 @@
94 97 ShaderProgram* _imShader;
95 98 ///A simple check to see if the manager is ready to process commands
96 99 bool _init;
97 -
100 + ///A pointer to the active kernel (for simplicity)
101 + Kernel* _activeKernel;
98 102 private:
99 103 ShaderManager();
100 104 ~ShaderManager();