|
||
---|---|---|
.. | ||
3rd-party | ||
android | ||
bindings | ||
demos | ||
examples | ||
include/sww | ||
ref | ||
source | ||
test | ||
test-data | ||
.clang-format | ||
.gitignore | ||
CMakeLists.txt | ||
LICENSE | ||
README.md |
README.md
Simple Window Wrapper
SWW
is a Simple Window Wrapper
library, provide unified interfaces(C/C++) for GUI Window Operations, include some bindings(LUA/Python/Javascript).
On Linux
For X11 user:
sudo apt install xorg-dev libxcb-image0-dev libxcb-icccm4-dev
admake rebuild -t
For framebuffer user:
[!NOTE] After the following operations, please re-log in.
# Append current user to group video
sudo usermod -aG video $USER
# Append current user to group input
sudo usermod -aG input $USER
admake rebuild -t
On Windows
admake rebuild -t
On macOS
admake rebuild -t
For OpenGL/Vulkan
- Try
--spec wgl
to specify API spec. - Try
--api gles=2.0
to specify API version. - Try
--extensions GL_ARB_compute_shader,GL_NV_shader_atomic_float
to specify extensions. - Try
--generator c-debug
to hook each API call and replace check_opengl_errors.
Also try https://glad.dav1d.de/
for online generation.
pip install glad2
python -m glad --out-path . --generator c --api gl:core=4.6