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,16 @@
/*
* Full compatibility GL MX header only
*
* GLAD: $GLAD --out-path=$tmp --api="gl:compatibility" c --loader --mx --header-only
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include -ldl
* RUN: $tmp/test
*/
#define GLAD_GL_IMPLEMENTATION
#include <glad/gl.h>
int main(void) {
GladGLContext gl = {0};
(void) gladLoaderLoadGLContext(&gl);
return 0;
}

View File

@@ -0,0 +1,16 @@
/*
* Full core GL MX header only
*
* GLAD: $GLAD --out-path=$tmp --api="gl:core" c --loader --mx --header-only
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include -ldl
* RUN: $tmp/test
*/
#define GLAD_GL_IMPLEMENTATION
#include <glad/gl.h>
int main(void) {
GladGLContext gl = {0};
(void) gladLoaderLoadGLContext(&gl);
return 0;
}

View File

@@ -0,0 +1,16 @@
/*
* No extensions compatibility GL MX header only
*
* GLAD: $GLAD --out-path=$tmp --api="gl:compatibility" --extensions="" c --loader --mx --header-only
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include -ldl
* RUN: $tmp/test
*/
#define GLAD_GL_IMPLEMENTATION
#include <glad/gl.h>
int main(void) {
GladGLContext gl = {0};
(void) gladLoaderLoadGLContext(&gl);
return 0;
}

View File

@@ -0,0 +1,16 @@
/*
* No extensions core GL MX header only
*
* GLAD: $GLAD --out-path=$tmp --api="gl:core" --extensions="" c --loader --mx --header-only
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include -ldl
* RUN: $tmp/test
*/
#define GLAD_GL_IMPLEMENTATION
#include <glad/gl.h>
int main(void) {
GladGLContext gl = {0};
(void) gladLoaderLoadGLContext(&gl);
return 0;
}

View File

@@ -0,0 +1,16 @@
/*
* MX header only GL 2.1 All extensions
*
* GLAD: $GLAD --out-path=$tmp --api="gl:compatibility=2.1" c --loader --mx --header-only
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include -ldl
* RUN: $tmp/test
*/
#define GLAD_GL_IMPLEMENTATION
#include <glad/gl.h>
int main(void) {
GladGLContext gl = {0};
(void) gladLoaderLoadGLContext(&gl);
return 0;
}

View File

@@ -0,0 +1,16 @@
/*
* MX header only GL 2.1 No extensions
*
* GLAD: $GLAD --out-path=$tmp --api="gl:compatibility=2.1" --extensions="" c --loader --mx --header-only
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include -ldl
* RUN: $tmp/test
*/
#define GLAD_GL_IMPLEMENTATION
#include <glad/gl.h>
int main(void) {
GladGLContext gl = {0};
(void) gladLoaderLoadGLContext(&gl);
return 0;
}

View File

@@ -0,0 +1,32 @@
/*
* MX header only, global generation, should compile basic API
*
* GLAD: $GLAD --out-path=$tmp --api="gl:compatibility" c --loader --mx --header-only
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include -ldl
* RUN: $tmp/test
*/
#define GLAD_GL_IMPLEMENTATION
#include <glad/gl.h>
typedef void (*VOID_FUNCPTR)(void);
VOID_FUNCPTR loader_userptr(void *userptr, const char *name) {
(void) name;
(void) userptr;
return NULL;
}
VOID_FUNCPTR loader(const char *name) {
(void) name;
return NULL;
}
int main(void) {
GladGLContext gl = {0};
gladLoadGLContextUserPtr(&gl, loader_userptr, NULL);
gladLoaderLoadGLContext(&gl);
return 0;
}