// 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); }
public void Remove(ShaderProgram shaderProgram) { Turpgine.Logger.Log(Level.Debug, "Removing ShaderProgram " + shaderProgram.GetHashCode() + "."); _shaderPrograms.Remove(shaderProgram.GetHashCode()); }
public ShaderProgramManager(GlMasterRenderHandler glMasterRenderHandler, ShaderProgram shaderProgram) : base(glMasterRenderHandler) { Add(shaderProgram); }