zgl
libepoxy
zgl | libepoxy | |
---|---|---|
3 | 3 | |
344 | 642 | |
4.4% | - | |
5.7 | 0.0 | |
5 days ago | about 2 months ago | |
Zig | C | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
zgl
-
How do I pass strings to [*c]const [*c]const u8?😕
I want to load shader files using @embedFile(), and pass them to Zgl (https://github.com/ziglibs/zgl) .shaderSource(). That takes a [c]const [c]const u8, which is equivalent to a 2d array of u8.
-
Example of using ZGL and mach-glfw?
I want to try using ZGL and mach-glfw and I just can't get it to work.
-
How do I link static library?
...but I sort of don't know how do these things properly. Here's my main.zig file (please note that I'm also using zwl and zgl here)...
libepoxy
-
App runs fine on Linux with OpenGL 3.2, segfaults on macOS 12 with OpenGL 4.1
OpenGL API is loaded using libepoxy.
-
Hardware Acceleration in Proot?
pkg install -y x11-repo; pkg install -y clang lld binutils cmake autoconf automake libtool '*ndk*' make python git libandroid-shmem-static 'vulkan*' ninja llvm bison flex libx11 xorgproto libdrm libpixman libxfixes libjpeg-turbo xtrans libxxf86vm xorg-xrandr xorg-font-util xorg-util-macros libxfont2 libxkbfile libpciaccess xcb-util-renderutil xcb-util-image xcb-util-keysyms xcb-util-wm xorg-xkbcomp xkeyboard-config libxdamage libxinerama;pip install meson mako;mkdir ~/tmp;cd ~/tmp;LD_PRELOAD='' git clone --depth 1 -b libxshmfence-1.3 https://gitlab.freedesktop.org/xorg/lib/libxshmfence.git;LD_PRELOAD='' git clone --depth 1 -b mesa-22.0.5 https://gitlab.freedesktop.org/mesa/mesa.git;LD_PRELOAD='' git clone --depth 1 -b 1.5.10 https://github.com/anholt/libepoxy.git;LD_PRELOAD='' git clone --shallow-since 2022-06-27 https://gitlab.freedesktop.org/virgl/virglrenderer.git;cd ~/tmp/libxshmfence;./autogen.sh --prefix=$PREFIX --with-shared-memory-dir=$TMPDIR;sed -i s/values.h/limits.h/ ./src/xshmfence_futex.h;make -j8 install CPPFLAGS=-DMAXINT=INT_MAX;cd ~/tmp/mesa;sed -i '40s+^$+#include "X11/Xlib.h"+' src/egl/main/egldisplay.h;sed -i 's/^import os$/import os, shutil\ndef link(src, dest):\n shutil.copyfile(src, dest)\ndef unlink(src):\n os.remove(src)\nos.link = link\nos.unlink = unlink/' bin/install_megadrivers.py;mkdir b;cd b;LDFLAGS='-l:libandroid-shmem.a -llog' meson .. -Dprefix=$PREFIX -Dplatforms=x11 -Dgbm=enabled -Ddri-drivers='' -Dgallium-drivers=zink,swrast -Dllvm=enabled -Dvulkan-drivers='' -Dcpp_rtti=false -Dc_args=-Wno-error=incompatible-function-pointer-types -Dbuildtype=release;ninja install;cd ~/tmp/libepoxy;mkdir b;cd b;meson -Dprefix=$PREFIX -Dbuildtype=release -Dglx=yes -Degl=yes -Dtests=false -Dc_args=-U__ANDROID__ ..;ninja install;cd ~/tmp/virglrenderer;git checkout -f dd301caf7e05ec9c09634fb7872067542aad89b7~2;sed -i 's+"/tmp+"/data/data/com.termux/files/usr/tmp+' vtest/vtest_protocol.h;mkdir b;cd b;meson -Dbuildtype=release -Dprefix=$PREFIX -Dplatforms=egl ..;ninja install;
-
How do I link static library?
Greetings! Recently I've trying to compile Zig project using a C library and I decided that I'd prefer using its binaries to build it from its source code (that's mostly due to how it's being built, that's not imporant here anyways). Thus, I've got two choices...
What are some alternatives?
wren-zig - wren bindings for zig
mesa-turnip-kgsl - Some fixes to make it possible to compile Turnip KGSL on a Linux chroot on Android devices. Special thanks to ByLaws from the Skyline Discord for the instructions on how to get Turnip to compile.
zig-args - Simple-to-use argument parser with struct-based config
ZWL - Zig Windowing Library
microzig - Unified abstraction layer and HAL for several microcontrollers
zig-network - A smallest-common-subset of socket functions for crossplatform networking, TCP & UDP
capy - 💻Build one codebase and get native UI on Windows, Linux and Web
mruby-zig - mruby bindings for zig
zig-xlsxwriter - A Zig library for writing files in the Excel 2007+ XLSX file format
fastfilter - fastfilter: Binary fuse & xor filters for Zig (faster and smaller than bloom filters)
zig-opengl - OpenGL binding generator based on the opengl registry