fixed includes

This commit is contained in:
2025-09-13 15:38:52 +02:00
parent bf2041351e
commit 435ae52352
9 changed files with 13 additions and 17 deletions
+2
View File
@@ -1,7 +1,9 @@
#include <GLFW/glfw3.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <glad/gl.h>
#include <linmath.h>
#include "file.h"
-10
View File
@@ -1,10 +0,0 @@
#ifndef GLFW_H
#define GLFW_H
#define GLAD_GL_IMPLEMENTATION
#include <glad/gl.h>
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
#endif
+1
View File
@@ -1,6 +1,7 @@
#include <stddef.h>
#include <stdio.h>
#include <glad/gl.h>
#include <linmath.h>
#include "constants.h"
-3
View File
@@ -4,10 +4,7 @@
#include <glad/gl.h>
#include <linmath.h>
#ifndef GLFW_INCLUDE_NONE
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
#endif
#ifndef TYPES_H
#define TYPES_H
+5 -1
View File
@@ -1,3 +1,4 @@
#include <GLFW/glfw3.h>
#include <stdio.h>
#include <stdlib.h>
@@ -6,7 +7,10 @@
#include "config.h"
#include "types.h"
#include "glfw.h"
#ifndef GLAD_GL_IMPLEMENTATION
#define GLAD_GL_IMPLEMENTATION
#include <glad/gl.h>
#endif
// TODO split into smaller functions
// TODO custom struct to remove glfw in signature