gl:get-uniform-location

(gl:get-uniform-location opengl program-number variable-name


Description:

returns a location of the unfiform variable-name in the program spec'd by program-number


Arguments:

         opengl -- opengl instance

  variable-name -- the uniform variable name as a string

 program-number -- the integer number of the shader program in which the uniform variable resides


Returns: integer: location of the uniform varaible


Related: gl:uniform 


Examples:



Back to index