bd44b5aa08
Nix / Required Checks: Nix (push) Blocked by required conditions
Nix / check-zig-cache-hash (push) Waiting to run
Test / skip (push) Waiting to run
Test / Required Checks: Test (push) Blocked by required conditions
Test / build-bench (push) Blocked by required conditions
Test / list-examples (push) Blocked by required conditions
Test / Example ${{ matrix.dir }} (Windows) (push) Blocked by required conditions
Test / Example ${{ matrix.dir }} (push) Blocked by required conditions
Test / build-cmake (push) Blocked by required conditions
Test / test-lib-vt-pkgconfig (push) Blocked by required conditions
Test / build-flatpak (push) Blocked by required conditions
Test / build-snap (push) Blocked by required conditions
Test / build-linux (namespace-profile-ghostty-md-arm64) (push) Blocked by required conditions
Test / build-nix (namespace-profile-ghostty-md) (push) Blocked by required conditions
Test / build-libghostty-vt (aarch64-linux) (push) Blocked by required conditions
Test / build-libghostty-vt (aarch64-macos) (push) Blocked by required conditions
Test / build-libghostty-vt (wasm32-freestanding) (push) Blocked by required conditions
Test / build-libghostty-vt (x86_64-linux) (push) Blocked by required conditions
Test / build-libghostty-vt (x86_64-linux-musl) (push) Blocked by required conditions
Test / build-libghostty-vt (x86_64-macos) (push) Blocked by required conditions
Test / build-libghostty-vt (x86_64-windows-gnu) (push) Blocked by required conditions
Test / build-libghostty-vt-macos (aarch64-ios) (push) Blocked by required conditions
Test / build-libghostty-vt-macos (aarch64-macos) (push) Blocked by required conditions
Test / build-libghostty-vt-macos (x86_64-macos) (push) Blocked by required conditions
Test / build-libghostty-vt-android (aarch64-linux-android) (push) Blocked by required conditions
Test / build-libghostty-vt-android (arm-linux-androideabi) (push) Blocked by required conditions
Test / build-libghostty-vt-android (x86_64-linux-android) (push) Blocked by required conditions
Test / build-libghostty-vt-windows (push) Blocked by required conditions
Test / build-libghostty-windows-gnu (push) Blocked by required conditions
Test / build-linux (namespace-profile-ghostty-md) (push) Blocked by required conditions
Test / build-linux-libghostty (push) Blocked by required conditions
Test / build-nix (namespace-profile-ghostty-md-arm64) (push) Blocked by required conditions
Test / build-dist (push) Blocked by required conditions
Test / build-dist-lib-vt (push) Blocked by required conditions
Test / trigger-snap (push) Blocked by required conditions
Test / trigger-flatpak (push) Blocked by required conditions
Test / build-macos (push) Blocked by required conditions
Test / build-macos-freetype (push) Blocked by required conditions
Test / test (push) Blocked by required conditions
Test / test-lib-vt (push) Blocked by required conditions
Test / GTK x11=false wayland=false (push) Blocked by required conditions
Test / GTK x11=true wayland=false (push) Blocked by required conditions
Test / GTK x11=false wayland=true (push) Blocked by required conditions
Test / GTK x11=true wayland=true (push) Blocked by required conditions
Test / Build -Dsimd=false (push) Blocked by required conditions
Test / Build -Dsimd=true (push) Blocked by required conditions
Test / Build -Dsentry=false (push) Blocked by required conditions
Test / Build -Dsentry=true (push) Blocked by required conditions
Test / test-macos (push) Blocked by required conditions
Test / test-windows (push) Blocked by required conditions
Test / Build -Di18n=false (push) Blocked by required conditions
Test / Build -Di18n=true (push) Blocked by required conditions
Test / Build test/fuzz-libghostty (push) Blocked by required conditions
Test / zig-fmt (push) Blocked by required conditions
Test / GitHub Actions Pins (push) Blocked by required conditions
Test / prettier (push) Blocked by required conditions
Test / swiftlint (push) Blocked by required conditions
Test / alejandra (push) Blocked by required conditions
Test / typos (push) Blocked by required conditions
Test / shellcheck (push) Blocked by required conditions
Test / translations (push) Blocked by required conditions
Test / blueprint-compiler (push) Blocked by required conditions
Test / Test pkg/wuffs (push) Blocked by required conditions
Test / Test build on Debian 13 (push) Blocked by required conditions
Test / valgrind (push) Blocked by required conditions
46 lines
1.7 KiB
Zig
46 lines
1.7 KiB
Zig
//! OpenGL bindings.
|
|
//!
|
|
//! These are purpose-built for usage within this program. While they closely
|
|
//! align with the OpenGL C APIs, they aren't meant to be general purpose,
|
|
//! they aren't meant to have 100% API coverage, and they aren't meant to
|
|
//! be hyper-performant.
|
|
//!
|
|
//! For performance-intensive or unsupported aspects of OpenGL, the C
|
|
//! API is exposed via the `c` constant.
|
|
//!
|
|
//! WARNING: Lots of performance improvements that we can make with Zig
|
|
//! comptime help. I'm deferring this until later but have some fun ideas.
|
|
|
|
pub const c = @import("c.zig").c;
|
|
pub const glad = @import("glad.zig");
|
|
pub const ext = @import("extensions.zig");
|
|
pub const Buffer = @import("Buffer.zig");
|
|
pub const Framebuffer = @import("Framebuffer.zig");
|
|
pub const Renderbuffer = @import("Renderbuffer.zig");
|
|
pub const Program = @import("Program.zig");
|
|
pub const Sampler = @import("Sampler.zig");
|
|
pub const Shader = @import("Shader.zig");
|
|
pub const Texture = @import("Texture.zig");
|
|
pub const VertexArray = @import("VertexArray.zig");
|
|
|
|
pub const errors = @import("errors.zig");
|
|
|
|
pub const Primitive = @import("primitives.zig").Primitive;
|
|
|
|
const draw = @import("draw.zig");
|
|
|
|
pub const blendFunc = draw.blendFunc;
|
|
pub const clear = draw.clear;
|
|
pub const clearColor = draw.clearColor;
|
|
pub const drawArrays = draw.drawArrays;
|
|
pub const drawArraysInstanced = draw.drawArraysInstanced;
|
|
pub const drawElements = draw.drawElements;
|
|
pub const drawElementsInstanced = draw.drawElementsInstanced;
|
|
pub const enable = draw.enable;
|
|
pub const disable = draw.disable;
|
|
pub const frontFace = draw.frontFace;
|
|
pub const pixelStore = draw.pixelStore;
|
|
pub const viewport = draw.viewport;
|
|
pub const flush = draw.flush;
|
|
pub const finish = draw.finish;
|