Esempio n. 1
0
        public static unsafe string GetActiveUniformName(uint program, uint uniformIndex)
        {
            int[]         length = new int[1];
            StringBuilder result = new StringBuilder();

            fixed(int *lenPtr = &length[0])
            {
                GLCore.GetActiveUniformName(program, uniformIndex, 2048, lenPtr, result);
            }

            return(result.ToString());
        }