glad: use OpenGL 3.0
This commit is contained in:
parent
626754d05e
commit
f8f81fd954
3661
include/glad.h
3661
include/glad.h
File diff suppressed because it is too large
Load Diff
1759
include/glad/glad.h
Normal file
1759
include/glad/glad.h
Normal file
File diff suppressed because it is too large
Load Diff
918
src/glad.c
918
src/glad.c
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "glad.h"
|
#include "glad/glad.h"
|
||||||
#include "opengl.h"
|
#include "opengl.h"
|
||||||
|
|
||||||
static inline int next_power_of_two(double n)
|
static inline int next_power_of_two(double n)
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "glad.h"
|
#include "glad/glad.h"
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
#include "opengl.h"
|
#include "opengl.h"
|
||||||
@ -96,8 +96,8 @@ int main()
|
|||||||
glfwSetWindowShouldClose(window, true);
|
glfwSetWindowShouldClose(window, true);
|
||||||
|
|
||||||
//solution_2025_01(vertex_array);
|
//solution_2025_01(vertex_array);
|
||||||
//solution_2025_03(vertex_array);
|
solution_2025_03(vertex_array);
|
||||||
solution_2025_04(vertex_array);
|
//solution_2025_04(vertex_array);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "glad.h"
|
#include "glad/glad.h"
|
||||||
#include "opengl.h"
|
#include "opengl.h"
|
||||||
|
|
||||||
uint compile_shader(const void * vp,
|
uint compile_shader(const void * vp,
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "glad.h"
|
#include "glad/glad.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "opengl.h"
|
#include "opengl.h"
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "glad.h"
|
#include "glad/glad.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "opengl.h"
|
#include "opengl.h"
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "glad.h"
|
#include "glad/glad.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "opengl.h"
|
#include "opengl.h"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user