---
name: "waffle_get_proc_address"
section: "3"
platform: "linux"
package: "libwaffle-doc"
version: "1.8.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/waffle_get_proc_address"
---

# waffle\_get\_proc\_address(3)

Query address of OpenGL functions

## NAME

waffle\_get\_proc\_address - Query address of OpenGL functions

## SYNOPSIS

```
#include <waffle.h>
```

**void\* waffle\_get\_proc\_address(const char \****name***);**

## DESCRIPTION

**waffle\_get\_proc\_address()**

On GLX, this redirects to **glXGetProcAddress**(3). On EGL, this redirects to **eglGetProcAddress**(3). On CGL, this function returns **NULL** because there exists no **CGLGetProcAdress()**. On WGL, this redirects to **wglGetProcAddress**(3).

Some aspects of this function's behavior are platform-specific and non-intuitive. For example,

• If the queried function is not available, **waffle\_get\_proc\_address()** may return a non-null pointer.

• If the queried function is statically exposed by the OpenGL library of a given API, then **waffle\_get\_proc\_address()** may return a **NULL**.

• Under Windows (WGL) a current context must be available before executing the function. Otherwise **waffle\_get\_proc\_address()** may return a **NULL**.

For details on this function's behavior, see the specification for the relevant platform: the **GLX 1.4 Specification**\[1\] the **EGL 1.4 Specification**\[2\] or the **MSDN article**\[3\].

## ERRORS

See [**waffle\_error**(3)](/waffle_error/3.md) for the complete list of waffle's error codes.

No errors are specific to any functions listed in this manual page.

## ISSUES

Please report bugs or and feature requests to **https://gitlab.freedesktop.org/mesa/waffle/issues**.

## SEE ALSO

[**waffle**(7)](/waffle/7.md), [**waffle\_dl\_sym**(3)](/waffle_dl_sym/3.md)

## AUTHOR

**Chad Versace** \<chad.versace@linux.intel.com\>

Former maintainer

## COPYRIGHT

Copyright © 2013 Intel\

This manual page is licensed under the Creative Commons Attribution-ShareAlike 3.0 United States License (CC BY-SA 3.0). To view a copy of this license, visit **http://creativecommons.org.license/by-sa/3.0/us**.

## NOTES

- 1\.

  GLX 1.4 Specification

  http://www.opengl.org/registry/doc/glx1.4.pdf

- 2\.

  EGL 1.4 Specification

  http://www.khronos.org/registry/egl/specs/eglspec.1.4.20110406.pdf

- 3\.

  MSDN article

  http://msdn.microsoft.com/en-gb/library/windows/desktop/dd374386(v=vs.85).aspx
