예제 #1
0
 // TODO Ensure ShaderProgram is not bound to any other manager
 public void Add(ShaderProgram shaderProgram)
 {
     Turpgine.Logger.Log(Level.Debug, "Adding ShaderProgram " + shaderProgram.GetHashCode() + ".");
     _shaderPrograms.Add(shaderProgram.GetHashCode(), shaderProgram);
 }
예제 #2
0
 public void Remove(ShaderProgram shaderProgram)
 {
     Turpgine.Logger.Log(Level.Debug, "Removing ShaderProgram " + shaderProgram.GetHashCode() + ".");
     _shaderPrograms.Remove(shaderProgram.GetHashCode());
 }
예제 #3
0
 public ShaderProgramManager(GlMasterRenderHandler glMasterRenderHandler, ShaderProgram shaderProgram) : base(glMasterRenderHandler)
 {
     Add(shaderProgram);
 }