This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This is @mmozeiko's libx + EGL example ported to xcb + EGL | |
| // Original code: https://gist.github.com/mmozeiko/911347b5e3d998621295794e0ba334c4 | |
| // It requires EGL_EXT_platform_xcb extension, so if your system is circa the end of 2021 or newer you should be fine. | |
| // Also, I don't know if it works on nvidia. LMK if you test it | |
| // example how to set up OpenGL core context on X11 with EGL | |
| // and use basic functionality of OpenGL 4.5 version | |
| // to compile on Ubuntu first install following packages: build-essential libxcb1-dev libgl-dev libegl-dev, then run: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const std = @import("std"); | |
| pub fn build(b: *std.Build) void { | |
| // Standard target options allows the person running `zig build` to choose | |
| // what target to build for. Here we do not override the defaults, which | |
| // means any target is allowed, and the default is native. Other options | |
| // for restricting supported target set are available. | |
| const target = b.standardTargetOptions(.{}); | |
| // Standard optimization options allow the person running `zig build` to select |