picogl.backend.modern.core.uniform.location

A utility function to retrieve the location of a uniform variable in a shader program.

This module provides a wrapper function for the OpenGL glGetUniformLocation method to simplify the process of obtaining the location of a uniform variable within a specific shader program. The function requires a valid shader program identifier and the name of the uniform variable as input and returns its corresponding location.

Functions: - gl_get_uniform_location: Fetches the location of a uniform variable.

Functions

gl_get_uniform_location(shader_program, uniform_name) → int

gl_get_uniform_location

Module Contents

picogl.backend.modern.core.uniform.location.gl_get_uniform_location(shader_program: int, uniform_name: str) → int[source]

gl_get_uniform_location

Parameters:
  • shader_program – int

  • uniform_name – str

Returns:

int