public Variable(string stringVarInfo)
        {
            var sections = stringVarInfo.Split(' ');

            if (sections.Length < 2)
                return;

            PropertyName = sections.Last();
            PropertyType = new GLSLType(sections[sections.Length - 2]);

            if (sections.Length < 3)
                return;

            Qualifier = new GLSLQualifier(sections[sections.Length - 3]);
        }
Example #2
0
        public Variable(string stringVarInfo)
        {
            var sections = stringVarInfo.Split(' ');

            if (sections.Length < 2)
            {
                return;
            }

            PropertyName = sections.Last();
            PropertyType = new GLSLType(sections[sections.Length - 2]);

            if (sections.Length < 3)
            {
                return;
            }

            Qualifier = new GLSLQualifier(sections[sections.Length - 3]);
        }
Example #3
0
 public Variable(string name, GLSLType property, GLSLQualifier qualifier = null)
 {
     PropertyName = name;
     PropertyType = property;
     Qualifier    = qualifier;
 }
 public Variable(string name, GLSLType property, GLSLQualifier qualifier = null)
 {
     PropertyName = name;
     PropertyType = property;
     Qualifier = qualifier;
 }