예제 #1
0
        public override bool AddShader(string ID)
        {
            if (_Shader.ContainsKey(ID))
            {
                return(false);
            }
            GLSLShaderProgram NewProgram;

            NewProgram = new GLSLShaderProgram(ID);
            _Shader.Add(ID, NewProgram);
            return(true);
        }
예제 #2
0
 public GLSLShaderProgram(GLSLShaderProgram GLSLShaderProgram) : base(GLSLShaderProgram)
 {
     this._Uniforms   = new GLSLShaderUniformPackage(GLSLShaderProgram._Uniforms);
     this._Attributes = new GLSLShaderAttributePackage(GLSLShaderProgram._Attributes);
     this._Textures   = new GLSLShaderTexturePackage(GLSLShaderProgram._Textures);
 }