diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eae08e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# Build artifacts +build/ + +# Direnv stuff for the flake +.envrc +.direnv + diff --git a/build/shaders/shader.fs b/build/shaders/shader.fs deleted file mode 100644 index 709d716..0000000 --- a/build/shaders/shader.fs +++ /dev/null @@ -1,13 +0,0 @@ -#version 330 core - -out vec4 FragColor; - -in vec3 ourColor; -in vec2 TexCoord; - -uniform sampler2D tex; - -void main() -{ - FragColor = texture(tex, TexCoord); -} diff --git a/build/shaders/shader.vs b/build/shaders/shader.vs deleted file mode 100644 index 3b778ea..0000000 --- a/build/shaders/shader.vs +++ /dev/null @@ -1,15 +0,0 @@ -#version 330 core - -layout (location = 0) in vec3 aPos; -layout (location = 1) in vec3 aColor; -layout (location = 2) in vec2 aTexCoord; - -out vec3 ourColor; -out vec2 TexCoord; - -void main() -{ - gl_Position = vec4(aPos, 1.0); - ourColor = aColor; - TexCoord = aTexCoord; -} diff --git a/build/src/glad.c.o b/build/src/glad.c.o deleted file mode 100644 index 84f74da..0000000 Binary files a/build/src/glad.c.o and /dev/null differ diff --git a/build/src/main.cpp.o b/build/src/main.cpp.o deleted file mode 100644 index e2d68d5..0000000 Binary files a/build/src/main.cpp.o and /dev/null differ diff --git a/build/src/stb_image.cpp.o b/build/src/stb_image.cpp.o deleted file mode 100644 index 6643bba..0000000 Binary files a/build/src/stb_image.cpp.o and /dev/null differ diff --git a/build/textures/awesomeface.png b/build/textures/awesomeface.png deleted file mode 100644 index 23c778d..0000000 Binary files a/build/textures/awesomeface.png and /dev/null differ diff --git a/build/textures/container.jpg b/build/textures/container.jpg deleted file mode 100644 index 50aa4c9..0000000 Binary files a/build/textures/container.jpg and /dev/null differ diff --git a/build/textures/wg.jpg b/build/textures/wg.jpg deleted file mode 100644 index 45494c8..0000000 Binary files a/build/textures/wg.jpg and /dev/null differ diff --git a/build/untap b/build/untap deleted file mode 100755 index 0b65a4f..0000000 Binary files a/build/untap and /dev/null differ diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..5d42af7 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1744868846, + "narHash": "sha256-5RJTdUHDmj12Qsv7XOhuospjAjATNiTMElplWnJE9Hs=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "ebe4301cbd8f81c4f8d3244b3632338bbeb6d49c", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..3e4e34b --- /dev/null +++ b/flake.nix @@ -0,0 +1,30 @@ +{ + description = "Template node project"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { + self, + nixpkgs, + flake-utils, + }: + flake-utils.lib.eachDefaultSystem ( + system: let + pkgs = import nixpkgs { + inherit system; + }; + in { + devShell = pkgs.mkShell { + buildInputs = with pkgs; [ + gnumake + glfw + pkg-config + glib.dev + ]; + }; + } + ); +}