Initial commit - some engine bugs stopping compiling
This commit is contained in:
16
third-party/glad/test/c/compile/glx/default/001/test.c
vendored
Normal file
16
third-party/glad/test/c/compile/glx/default/001/test.c
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Full GLX
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="glx,gl:core" c --loader
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/glx.c -ldl -lX11
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#include <glad/glx.h>
|
||||
|
||||
int main(void) {
|
||||
Display *display = NULL;
|
||||
(void) gladLoaderLoadGLX(display, 0);
|
||||
(void) gladLoaderUnloadGLX();
|
||||
return 0;
|
||||
}
|
||||
16
third-party/glad/test/c/compile/glx/default/002/test.c
vendored
Normal file
16
third-party/glad/test/c/compile/glx/default/002/test.c
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Full GLX, without X11 as dependency
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="glx,gl:core" c --loader
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/glx.c -ldl -DGLAD_GLX_NO_X11
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#include <glad/glx.h>
|
||||
|
||||
int main(void) {
|
||||
Display *display = NULL;
|
||||
(void) gladLoaderLoadGLX(display, 0);
|
||||
(void) gladLoaderUnloadGLX();
|
||||
return 0;
|
||||
}
|
||||
16
third-party/glad/test/c/compile/glx/default/003/test.c
vendored
Normal file
16
third-party/glad/test/c/compile/glx/default/003/test.c
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* GLX 1.0
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="glx=1.0,gl:core" c --loader
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/glx.c -ldl -DGLAD_GLX_NO_X11
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#include <glad/glx.h>
|
||||
|
||||
int main(void) {
|
||||
Display *display = NULL;
|
||||
(void) gladLoaderLoadGLX(display, 0);
|
||||
(void) gladLoaderUnloadGLX();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user