Here https://github.com/luce80/PureBasic_gles-egl you can find PureBasic bindings for the libGLES and libEGL shared libraries. There are also a few utility functions. There is also a test program.
ATTENTION: to successfully run the example code you will have to edit the libpath and libname variable strings at the beginning of the code.