Initial commit - some engine bugs stopping compiling

This commit is contained in:
Will
2026-03-29 15:52:42 +01:00
commit 3d573a200e
361 changed files with 332759 additions and 0 deletions

View 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="egl=" c --alias
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/egl.c -ldl
* RUN: $tmp/test
*/
#include <glad/egl.h>
int main(void) {
return 0;
}

View File

@@ -0,0 +1,17 @@
/*
* Full EGL
*
* GLAD: $GLAD --out-path=$tmp --api="egl=" c --loader
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/egl.c -ldl
* RUN: $tmp/test
*/
#include <glad/egl.h>
#include <stddef.h>
int main(void) {
EGLDisplay display = NULL;
(void) gladLoaderLoadEGL(display);
(void) gladLoaderUnloadEGL();
return 0;
}

View File

@@ -0,0 +1,17 @@
/*
* EGL 1.0
*
* GLAD: $GLAD --out-path=$tmp --api="egl=1.0" c --loader
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/egl.c -ldl
* RUN: $tmp/test
*/
#include <glad/egl.h>
#include <stddef.h>
int main(void) {
EGLDisplay display = NULL;
(void) gladLoaderLoadEGL(display);
(void) gladLoaderUnloadEGL();
return 0;
}

View File

@@ -0,0 +1,17 @@
/*
* Full header only only EGL
*
* GLAD: $GLAD --out-path=$tmp --api="egl=" c --loader --header-only
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include -ldl
* RUN: $tmp/test
*/
#define GLAD_EGL_IMPLEMENTATION
#include <glad/egl.h>
int main(void) {
EGLDisplay display = NULL;
(void) gladLoaderLoadEGL(display);
(void) gladLoaderUnloadEGL();
return 0;
}

View File

@@ -0,0 +1,13 @@
/*
* Full on demand EGL
*
* GLAD: $GLAD --out-path=$tmp --api="egl" c --on-demand
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/egl.c -ldl
* RUN: $tmp/test
*/
#include <glad/egl.h>
int main(void) {
return 0;
}

View File

@@ -0,0 +1,13 @@
/*
* Full on demand EGL with loader
*
* GLAD: $GLAD --out-path=$tmp --api="egl" c --on-demand --loader
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/egl.c -ldl
* RUN: $tmp/test
*/
#include <glad/egl.h>
int main(void) {
return 0;
}