Initial commit - some engine bugs stopping compiling
This commit is contained in:
14
third-party/glad/test/c/compile/glx/alias/001/test.c
vendored
Normal file
14
third-party/glad/test/c/compile/glx/alias/001/test.c
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Issue #362, aliasing func is not called.
|
||||
* Note this does not actually verify the functions get properly initialized only that it compiles
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="glx,gl:core" c --alias
|
||||
* 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) {
|
||||
return 0;
|
||||
}
|
||||
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;
|
||||
}
|
||||
17
third-party/glad/test/c/compile/glx/header-only/001/test.c
vendored
Normal file
17
third-party/glad/test/c/compile/glx/header-only/001/test.c
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Full header only only GLX
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="glx,gl:core" c --loader --header-only
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include -ldl -lX11
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#define GLAD_GLX_IMPLEMENTATION
|
||||
#include <glad/glx.h>
|
||||
|
||||
int main(void) {
|
||||
Display *display = NULL;
|
||||
(void) gladLoaderLoadGLX(display, 0);
|
||||
(void) gladLoaderUnloadGLX();
|
||||
return 0;
|
||||
}
|
||||
17
third-party/glad/test/c/compile/glx/header-only/002/test.c
vendored
Normal file
17
third-party/glad/test/c/compile/glx/header-only/002/test.c
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Full header only only GLX, without X11 as dependency
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="glx,gl:core" c --loader --header-only
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include -ldl -DGLAD_GLX_NO_X11
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#define GLAD_GLX_IMPLEMENTATION
|
||||
#include <glad/glx.h>
|
||||
|
||||
int main(void) {
|
||||
Display *display = NULL;
|
||||
(void) gladLoaderLoadGLX(display, 0);
|
||||
(void) gladLoaderUnloadGLX();
|
||||
return 0;
|
||||
}
|
||||
13
third-party/glad/test/c/compile/glx/on-demand/001/test.c
vendored
Normal file
13
third-party/glad/test/c/compile/glx/on-demand/001/test.c
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Full on demand GLX
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="glx,gl:core" c --on-demand
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/glx.c -ldl
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#include <glad/glx.h>
|
||||
|
||||
int main(void) {
|
||||
return 0;
|
||||
}
|
||||
13
third-party/glad/test/c/compile/glx/on-demand/002/test.c
vendored
Normal file
13
third-party/glad/test/c/compile/glx/on-demand/002/test.c
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Full on demand GLX with loader
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="glx,gl:core" c --on-demand --loader
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/glx.c -ldl
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#include <glad/glx.h>
|
||||
|
||||
int main(void) {
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user