最初コミット

This commit is contained in:
2026-05-02 04:15:55 +09:00
commit 136aefcf9d
6 changed files with 7819 additions and 0 deletions

28
build.zig Normal file
View File

@@ -0,0 +1,28 @@
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const exe = b.addExecutable(.{
.name = "OpenGLレンダー",
.root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
}),
});
const zglfw = b.dependency("zglfw", .{
.target = target,
.optimize = optimize,
});
exe.root_module.addImport("zglfw", zglfw.module("root"));
exe.root_module.linkLibrary(zglfw.artifact("glfw"));
exe.root_module.addIncludePath(b.path("./include"));
exe.root_module.addCSourceFile(.{
.file = b.path("src/glad.c" ),
});
b.installArtifact(exe);
}