---
name: "SDL_HINT_OPENGL_LIBRARY"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_HINT_OPENGL_LIBRARY"
---

# SDL\_HINT\_OPENGL\_LIBRARY(3)

Specify the OpenGL library to load.

## NAME

SDL\_HINT\_OPENGL\_LIBRARY - Specify the OpenGL library to load.

## HEADER FILE

Defined in SDL3/SDL\_hints.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**#define SDL\_HINT\_OPENGL\_LIBRARY** *SDL\_OPENGL\_LIBRARY"*

## DESCRIPTION

This hint should be set before creating an OpenGL window or creating an OpenGL context. If this hint isn't set, SDL will choose a reasonable default.

## AVAILABILITY

This hint is available since SDL 3.2.0.
