mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
pkg/opengl: yeet usingns
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
const Buffer = @This();
|
||||
|
||||
const std = @import("std");
|
||||
const c = @import("c.zig");
|
||||
const c = @import("c.zig").c;
|
||||
const errors = @import("errors.zig");
|
||||
const glad = @import("glad.zig");
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
const Framebuffer = @This();
|
||||
|
||||
const std = @import("std");
|
||||
const c = @import("c.zig");
|
||||
const c = @import("c.zig").c;
|
||||
const errors = @import("errors.zig");
|
||||
const glad = @import("glad.zig");
|
||||
const Texture = @import("Texture.zig");
|
||||
|
@ -4,7 +4,7 @@ const std = @import("std");
|
||||
const assert = std.debug.assert;
|
||||
const log = std.log.scoped(.opengl);
|
||||
|
||||
const c = @import("c.zig");
|
||||
const c = @import("c.zig").c;
|
||||
const Shader = @import("Shader.zig");
|
||||
const errors = @import("errors.zig");
|
||||
const glad = @import("glad.zig");
|
||||
|
@ -4,7 +4,7 @@ const std = @import("std");
|
||||
const assert = std.debug.assert;
|
||||
const log = std.log.scoped(.opengl);
|
||||
|
||||
const c = @import("c.zig");
|
||||
const c = @import("c.zig").c;
|
||||
const errors = @import("errors.zig");
|
||||
const glad = @import("glad.zig");
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
const Texture = @This();
|
||||
|
||||
const std = @import("std");
|
||||
const c = @import("c.zig");
|
||||
const c = @import("c.zig").c;
|
||||
const errors = @import("errors.zig");
|
||||
const glad = @import("glad.zig");
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
const VertexArray = @This();
|
||||
|
||||
const c = @import("c.zig");
|
||||
const c = @import("c.zig").c;
|
||||
const glad = @import("glad.zig");
|
||||
const errors = @import("errors.zig");
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
pub usingnamespace @cImport({
|
||||
pub const c = @cImport({
|
||||
@cInclude("glad/gl.h");
|
||||
});
|
||||
|
@ -1,4 +1,4 @@
|
||||
const c = @import("c.zig");
|
||||
const c = @import("c.zig").c;
|
||||
const errors = @import("errors.zig");
|
||||
const glad = @import("glad.zig");
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
const std = @import("std");
|
||||
const c = @import("c.zig");
|
||||
const c = @import("c.zig").c;
|
||||
const glad = @import("glad.zig");
|
||||
|
||||
pub const Error = error{
|
||||
|
@ -1,5 +1,5 @@
|
||||
const std = @import("std");
|
||||
const c = @import("c.zig");
|
||||
const c = @import("c.zig").c;
|
||||
const errors = @import("errors.zig");
|
||||
const glad = @import("glad.zig");
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
const std = @import("std");
|
||||
const c = @import("c.zig");
|
||||
const c = @import("c.zig").c;
|
||||
|
||||
pub const Context = c.GladGLContext;
|
||||
|
||||
|
@ -11,10 +11,8 @@
|
||||
//! 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");
|
||||
pub const c = @import("c.zig").c;
|
||||
pub const glad = @import("glad.zig");
|
||||
pub usingnamespace @import("draw.zig");
|
||||
|
||||
pub const ext = @import("extensions.zig");
|
||||
pub const Buffer = @import("Buffer.zig");
|
||||
pub const Framebuffer = @import("Framebuffer.zig");
|
||||
@ -22,3 +20,16 @@ pub const Program = @import("Program.zig");
|
||||
pub const Shader = @import("Shader.zig");
|
||||
pub const Texture = @import("Texture.zig");
|
||||
pub const VertexArray = @import("VertexArray.zig");
|
||||
|
||||
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 drawElements = draw.drawElements;
|
||||
pub const drawElementsInstanced = draw.drawElementsInstanced;
|
||||
pub const enable = draw.enable;
|
||||
pub const frontFace = draw.frontFace;
|
||||
pub const pixelStore = draw.pixelStore;
|
||||
pub const viewport = draw.viewport;
|
||||
|
Reference in New Issue
Block a user