---
name: "SDL_EGL_GetProcAddress"
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_EGL_GetProcAddress"
---

# SDL\_EGL\_GetProcAddress(3)

Get an EGL library function by name.

## NAME

SDL\_EGL\_GetProcAddress - Get an EGL library function by name.

## HEADER FILE

Defined in SDL3/SDL\_video.h

## SYNOPSIS

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

**SDL\_FunctionPointer SDL\_EGL\_GetProcAddress(const char \*proc);**

## DESCRIPTION

If an EGL library is loaded, this function allows applications to get entry points for EGL functions. This is useful to provide to an EGL API and extension loader.

## FUNCTION PARAMETERS

- *proc*

  the name of an EGL function.

## RETURN VALUE

( **SDL\_FunctionPointer** ) Returns a pointer to the named EGL function. The returned pointer should be cast to the appropriate function signature.

## THREAD SAFETY

This function should only be called on the main thread.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_EGL\_GetCurrentDisplay**(3)](/SDL_EGL_GetCurrentDisplay/3.md)
