GLES 3 bindings for Android lazarus / 70-OpenGL ---------------------------------------------------------------------- Key-Real · 2025-03-01 23:55 GLES 3 bindings for Android, are they exist? ---------------------------------------------------------------------- Seenkao · 2025-03-02 00:16 https://sourceforge.net/projects/new-zengl/ ZenGL -> srcGL -> GLES -> zgl_gles.pas ---------------------------------------------------------------------- Key-Real · 2025-03-02 01:18 can't fix dependencies for ZenGL ---------------------------------------------------------------------- Seenkao · 2025-03-02 09:08 Зависимостей всего две, это: 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. ---------------------------------------------------------------------- Seenkao · 2025-03-02 09:23 Вы можете заглянуть в модуль FPC/Lazarus - gles20.pas и перенести необходимую функциональность из моего модуля туда (кстати, функциональность EGL вам тоже может понадобится, а может нет). Так же, не забывайте что для Android надо обязательно указывать используемую версию GLES. ---------------------------------- Google translate: You can look into the FPC/Lazarus module - gles20.pas and transfer the necessary functionality from my module there (by the way, you may or may not need the EGL functionality). Also, do not forget that for Android you must specify the GLES version used.