Зависимостей всего две, это:
function gl_IsSupported( const Extension, SearchIn: UTF8String ) : Boolean;. Эту функцию вы можете перенести в свой же модуль.
и функции dlopen, dlclose, dlsym. Их вы так же можете перенести в свой модуль, либо использовать стандартные средства FPC/Lazarus (например LoadLibrary).
В начале файла замените строчку {$I zgl_config.cfg} на {$I gles_conf.cfg}, если не используете ZenGL. И вам придётся разобраться с определениями. Думаю это не будет сложно, большая часть комментирована.
Файл gles_conf.cfg - нужен для правильной настройки GLES. Используйте его, и выставьте нужные определения.
----------------------------------
Google translate:
There are only two dependencies:
function gl_IsSupported( const Extension, SearchIn: UTF8String ) : Boolean;. You can move this function to your module.
and functions dlopen, dlclose, dlsym. You can also move them to your module, or use standard FPC/Lazarus tools (for example LoadLibrary).
At the beginning of the file, replace the line {$I zgl_config.cfg} with {$I gles_conf.cfg}, if you do not use ZenGL. And you will have to figure out the definitions. I think it won’t be difficult, most of it is commented.
File gles_conf.cfg - is needed to properly configure GLES. Use it and set the definitions you need.