anholt / libepoxy

Epoxy is a library for handling OpenGL function pointer management for you
Other
680 stars 161 forks source link

why use epoxy #185

Closed iossefy closed 6 years ago

iossefy commented 6 years ago

why

#include <epoxy/gl.h>
#include <epoxy/glx.h>

instead of

#include <GL/gl.h>
ebassi commented 6 years ago

Hi; this is an issue tracker, and does not really work as a way to ask questions about the nature of Epoxy.

"Why use epoxy" — I assume you haven't read the README file with the rationale for using Epoxy.

As for the header to include: Epoxy provides the GL API through wrappers, so it can load symbols on demand; check for supported extensions; and map aliases. This cannot happen when using the GL headers.