Beispiel #1
0
        private void LoadProgram(SHARC.ShaderProgram program)
        {
            string programXML = Sharc2XML.WriteProgram(program);

            textEditor1.FillEditor(programXML);
            textEditor1.IsXML = true;
        }
Beispiel #2
0
        public SHShaderProgram(SHARC.Header shader, SHARC.ShaderProgram program)
        {
            ShaderArchive = shader;
            Program       = program;

            this.Compile();
        }
Beispiel #3
0
 public void FillEditor(SHARC.ShaderProgram program, SHARC.Header header)
 {
     LoadProgram(program);
 }