new files

This commit is contained in:
2025-09-12 22:49:35 +02:00
parent b7aa658e50
commit 7e93bb1512
6 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
AUTOMAKE_OPTIONS = foreign subdir-objects -Wall
bin_PROGRAMS = forge
forge_SOURCES = src/main.c src/args.c src/forge.c src/file.c
forge_SOURCES = src/main.c src/args.c src/forge.c src/file.c src/window.c src/shaders.c
forge_CFLAGS = -Ofast -march=native -flto -funroll-loops -fprefetch-loop-arrays -fno-exceptions -fopenmp
include_HEADERS = src/main.h src/args.h src/config.h src/types.h src/forge.h src/file.h src/constants.h include/linmath.h include/glad/gl.h
include_HEADERS = src/main.h src/args.h src/config.h src/types.h src/forge.h src/file.h src/constants.h src/window.h src/shaders.h include/linmath.h include/glad/gl.h
+2 -2
View File
@@ -27,12 +27,12 @@ void print_help(int status_code) {
void invalid_arg(char *arg) {
fprintf(stderr, "invalid argument: '%s'\n\n", arg);
print_help(1);
print_help(EXIT_FAILURE);
}
void invalid_value(char *arg, char *value) {
fprintf(stderr, "invalid value for argument '%s': '%s'\n\n", arg, value);
print_help(1);
print_help(EXIT_FAILURE);
}
bool is_arg(char *arg, char *ref) { return strcoll(arg, ref) == 0; }
View File
+4
View File
@@ -0,0 +1,4 @@
#ifndef SHADERS_H
#define SHADERS_H
#endif
View File
+4
View File
@@ -0,0 +1,4 @@
#ifndef WINDOW_H
#define WINDOW_H
#endif