---
name: "al_get_opengl_program_object"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_get_opengl_program_object"
---

# al\_get\_opengl\_program\_object(3)

Allegro 5 API

## NAME

al\_get\_opengl\_program\_object - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_opengl.h>
  GLuint al_get_opengl_program_object(ALLEGRO_SHADER *shader)
  ```

## DESCRIPTION

Returns the OpenGL program object associated with this shader, if the platform is `ALLEGRO_SHADER_GLSL`. Otherwise, returns 0.
