fixed includes
This commit is contained in:
+2
-1
@@ -2,8 +2,9 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <linmath.h>
|
||||
|
||||
#include "file.h"
|
||||
#include "glfw.h"
|
||||
#include "shaders.h"
|
||||
#include "types.h"
|
||||
#include "window.h"
|
||||
|
||||
+1
-1
@@ -1,9 +1,9 @@
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <linmath.h>
|
||||
|
||||
#include "constants.h"
|
||||
#include "glfw.h"
|
||||
#include "types.h"
|
||||
|
||||
// TODO split into smaller functions
|
||||
|
||||
+5
-1
@@ -1,9 +1,13 @@
|
||||
#include <stdbool.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <glad/gl.h>
|
||||
#include <linmath.h>
|
||||
|
||||
#include "glfw.h"
|
||||
#ifndef GLFW_INCLUDE_NONE
|
||||
#define GLFW_INCLUDE_NONE
|
||||
#include <GLFW/glfw3.h>
|
||||
#endif
|
||||
|
||||
#ifndef TYPES_H
|
||||
#define TYPES_H
|
||||
|
||||
+4
-3
@@ -4,9 +4,10 @@
|
||||
#include <linmath.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "glfw.h"
|
||||
#include "types.h"
|
||||
|
||||
#include "glfw.h"
|
||||
|
||||
// TODO split into smaller functions
|
||||
// TODO custom struct to remove glfw in signature
|
||||
void *init_window(Window **window, Parameters params,
|
||||
@@ -25,8 +26,8 @@ void *init_window(Window **window, Parameters params,
|
||||
}
|
||||
|
||||
// add context to window before creation
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 6);
|
||||
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
|
||||
glfwWindowHint(GLFW_DECORATED, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user