Forum > Games
ZenGL +android + MacOS Cocoa (beta)
Seenkao:
OpenGL!
Доброй ночи! Выкладываю сюда новую версию ZenGL и так же бета версию для MacOS Cocoa.
Goodnight! I'm posting here a new version of ZenGL and also a beta version for MacOS Cocoa.
:)
ZenGL 3.26/3.27beta (for MacOS Cocoa)
Будте внимательны!!! Ветки перепутаны! (по моей неопытности работы с GitHab).
Часть демо-версий не работает!
12-я считается устаревшей и дорабатывать не буду.
3-я будет доработана позже.
4-ю не желательно использовать для MacOS Cocoa!!!
15-я требует компиляции файлов в папке "yuv2rgba" (да, я не всё умею и не на всё хватает времени) или найти какое-то другое решение.
16-я требует полной переработки, файл идущий с ZenGL для физики, устарел.
17-я в доработке.
18-я. под LCL не буду дорабатывать. Если у вас есть предложения, готов выслушать и будем от этого отталкиваться.
Введена процедура procedure gl_SetCoreGL(mode: Byte);
mode принимает значения CORE_2_1, CORE_3_2,CORE_4_1 - поэтому умельцы, могут включить нужный им OpenGL и работать именно с ним.
устанавливать значение надо до создания окна!!!
необходимо проверить триангуляцию!!! На моём компьютере она не работает.
Google translate:
Be careful!!! The branches are confused! (due to my inexperience in working with GitHab).
Some demos don't work!
The 12th is considered obsolete and I will not modify it.
3rd will be finalized later.
The 4th is not desirable for macOS Cocoa!!!
The 15th requires compiling the files in the "yuv2rgba" folder (yes, I can't do everything and I don't have enough time for everything) or find some other solution.
The 16th requires a complete overhaul, the file that comes with ZenGL for physics is outdated.
17th in revision.
18th. I will not modify it under LCL. If you have any suggestions, I am ready to listen and we will build on this.
Added procedure procedure gl_SetCoreGL (mode: Byte);
mode takes on the values CORE_2_1, CORE_3_2, CORE_4_1 - therefore, craftsmen can enable the OpenGL they need and work with it.
set the value before creating the window!!!
it is necessary to check the triangulation!!! It doesn't work on my computer.
Seenkao:
Если вы используете BigSur или CPU не x86_64 то вам надо:
установить библиотеки из brew
If you are using BigSur or a CPU not x86_64 then you need:
install libraries from brew
- zlib
- libzip
- libogg
- vorbis
и если знаете как запустить 15-ю и 16-ю демо-версии, то:
and if you know how to run the 15th and 16th demo versions, then:
- theora
- chipmunk
в файле "zgl_config.cfg" выставить
in the file "zgl_config.cfg" set
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---{$DEFINE MAC_COCOA} and disable
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---{$IFDEF MAC_COCOA} {$DEFINE NO_USE_STATIC_LIBRARY} // -> {.$DEFINE NO_USE_STATIC_LIBRARY}{$ENDIF}If all libraries are installed by default, then the demo versions should work.
Если все библиотеки будут установлены по умолчанию, то демо-версии должны заработать.
skalogryz:
zlib идёт в маке из коробки
с Маком вся тонкость как динамические либы распростронять.
Их обязательно нужно класть в нужную директорию в бандле!
иначе конечных пользователей тоже придёться просить ставить Brew. не камильфо! :)
Seenkao:
skalogryz, и вот тут вырисовывается интересная проблема... о которой я даже не задумывался...
Допустим для своего процессора я добавлю эти самые библиотеки, это не проблема.
Но!!! Как обеспечить полную совместимость программы для разных процессоров по свое сути?!
Мне надо об этом заботится? Или всё же приложение скомпилированное на процессоре x86-64 будет работать на процессоре ARM64? Если да, то как мне получить библиотеки для процессора ARM?
Эта проблема, похоже, касается не только MacOS, но и Linux?
Я ни сколько не на Java программирую...
Google translate:
and here an interesting problem looms ... which I did not even think about ...
Suppose I add these same libraries for my processor, this is not a problem.
But!!! How to ensure full compatibility of the program for different processors in essence?!
Do I need to take care of this? Or will an application compiled on an x86-64 processor run on an ARM64 processor? If so, how do I get libraries for the ARM processor?
Does this problem seem to affect not only macOS but Linux as well?
I do not program in Java at all ...
P.S. skalogryz, мы не на русскоязычном форуме. :)
Seenkao:
Всем привет! Обновил версию ZenGL до 3.28.
И с данного момента (так то и раньше уже было) теперь параллельно идёт разработка собственной библиотеки Green Engine. Работает только с ZenGL.
Прошу прощения, но на английском информации мало. Но по ходу разработки добавляю комментарии в код и демонстрационные версии.
GE - предоставляет в данное время только возможность работать с полем ввода, и виртуальной клавиатурой, которая ещё не доделана... Для мобильных систем пока ни как не состыкована эта клавиатура, хотя для неё изначально только и делал.
Поле ввода пока только проверены на Windows и Linux. На MacOS должно работать, но пока не проверял. :-[
Надеюсь полезное видео, где я переделываю 3-ю демо-версию. В конце видео показываю, как можно использовать несколько полей ввода.
Google translate:
Hello everyone! Updated ZenGL version to 3.28.
And from this moment (and it has already happened before), the development of its own Green Engine library is now going on in parallel. Works with ZenGL only.
Sorry, but there is little information in English. But in the course of development, I add comments to the code and demos.
GE - at this time only provides the ability to work with the input field, and the virtual keyboard, which has not yet been completed ... For mobile systems, this keyboard has not yet been docked, although it was originally only done for it.
The input field has only been tested on Windows and Linux so far. It should work on macOS, but haven't tested it yet. :-[
Hopefully helpful video of me remaking the 3rd demo. (rus) At the end of the video, I show you how you can use multiple input fields.
Navigation
[0] Message Index
[#] Next page