Recent

Author Topic: GLES 3 bindings for Android  (Read 266 times)

Key-Real

  • Sr. Member
  • ****
  • Posts: 386
GLES 3 bindings for Android
« on: March 02, 2025, 12:55:41 am »
GLES 3 bindings for Android, are they exist?

Seenkao

  • Hero Member
  • *****
  • Posts: 676
    • New ZenGL.
Re: GLES 3 bindings for Android
« Reply #1 on: March 02, 2025, 01:16:15 am »
https://sourceforge.net/projects/new-zengl/

ZenGL -> srcGL -> GLES -> zgl_gles.pas
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

Key-Real

  • Sr. Member
  • ****
  • Posts: 386
Re: GLES 3 bindings for Android
« Reply #2 on: March 02, 2025, 02:18:11 am »
can't fix dependencies for ZenGL :(

Seenkao

  • Hero Member
  • *****
  • Posts: 676
    • New ZenGL.
Re: GLES 3 bindings for Android
« Reply #3 on: March 02, 2025, 10:08:00 am »
Зависимостей всего две, это:
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.
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

Seenkao

  • Hero Member
  • *****
  • Posts: 676
    • New ZenGL.
Re: GLES 3 bindings for Android
« Reply #4 on: March 02, 2025, 10:23:11 am »
Вы можете заглянуть в модуль 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.
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

 

TinyPortal © 2005-2018