Cogl.program_get_uniform_location
Description: Reference for Cogl.program_get_uniform_location

### Function

# Coglprogram_get_uniform_location

deprecated: 1.16 since: 13

#### Declaration [src]

    int
    cogl_program_get_uniform_location (
      CoglHandle handle,
      const char* uniform_name
    )

#### Description [src]

Retrieve the location (offset) of a uniform variable in a shader program, a uniform is a variable that is constant for all vertices/fragments for a shader object and is possible to modify as an external parameter.

Available since: 13

Deprecated since: 1.16

Use `CoglSnippet` api instead.

#### Parameters

`handle`

  Type: `CoglHandle`

  A `CoglHandle` for a shader program.

`uniform_name`

  Type: `const char*`

  The name of a uniform.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

#### Return value

Type: `int`

The offset of a uniform in a specified program.