libepoxy: /build/libepoxy/src/libepoxy/src/dispatch_egl.c File Reference

libepoxy 1.5.10

Functions
dispatch_egl.c File Reference
`#include <assert.h>`
`#include <string.h>`
`#include <stdio.h>`
`#include "dispatch_common.h"`

## Functions
int | epoxy_conservative_egl_version (void)
int | epoxy_egl_version (EGLDisplay dpy)
| Returns the version of OpenGL we are using.
bool | epoxy_conservative_has_egl_extension (const char *ext)
bool | epoxy_has_egl_extension (EGLDisplay dpy, const char *ext)
| Returns true if the given EGL extension is supported in the current context.
bool | epoxy_has_egl (void)
| Checks whether EGL is available.

## Function Documentation

## ◆ epoxy_conservative_egl_version()

int epoxy_conservative_egl_version | ( | void |  | ) |

## ◆ epoxy_conservative_has_egl_extension()

bool epoxy_conservative_has_egl_extension | ( | const char * | ext | ) |

## ◆ epoxy_egl_version()

int epoxy_egl_version | ( | EGLDisplay | dpy | ) |

Returns the version of OpenGL we are using.

The version is encoded as:

version = major * 10 + minor

So it can be easily used for version comparisons.

Parameters

  The | EGL display

Returns
  The encoded version of EGL we are using

See also
  epoxy_gl_version()

## ◆ epoxy_has_egl()

bool epoxy_has_egl | ( | void |  | ) |

Checks whether EGL is available.

Returns
  `true` if EGL is available

Since libepoxy 1.4

## ◆ epoxy_has_egl_extension()

bool epoxy_has_egl_extension | ( | EGLDisplay | dpy,
|  | const char * | ext )

Returns true if the given EGL extension is supported in the current context.

Parameters

  dpy | The EGL display
  extension | The name of the EGL extension

Returns
  `true` if the extension is available

See also
  epoxy_has_gl_extension()
  epoxy_has_glx_extension()