fixed includes
This commit is contained in:
@@ -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
@@ -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,6 +1,7 @@
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <glad/gl.h>
|
||||
#include <linmath.h>
|
||||
|
||||
#include "constants.h"
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user