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,17 @@
/*
* Full compatibility GL, with aliasing
*
* GLAD: $GLAD --out-path=$tmp --api="gl:compatibility" c --loader --alias
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/gl.c -ldl
* RUN: $tmp/test
*/
#include <glad/gl.h>
#ifndef GL_KHR_debug
#error
#endif
int main(void) {
return 0;
}

View File

@@ -0,0 +1,17 @@
/*
* Full core GL, with aliasing
*
* GLAD: $GLAD --out-path=$tmp --api="gl:core" c --loader --alias
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/gl.c -ldl
* RUN: $tmp/test
*/
#include <glad/gl.h>
#ifndef GL_KHR_debug
#error
#endif
int main(void) {
return 0;
}

View File

@@ -0,0 +1,17 @@
/*
* No extensions compatibility GL, with aliasing
*
* GLAD: $GLAD --out-path=$tmp --api="gl:compatibility" --extensions="" c --loader --alias
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/gl.c -ldl
* RUN: $tmp/test
*/
#include <glad/gl.h>
#ifndef GL_KHR_debug /* extension should be added by aliasing */
#error
#endif
int main(void) {
return 0;
}

View File

@@ -0,0 +1,17 @@
/*
* No extensions core GL, with aliasing
*
* GLAD: $GLAD --out-path=$tmp --api="gl:core" --extensions="" c --loader --alias
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/gl.c -ldl
* RUN: $tmp/test
*/
#include <glad/gl.h>
#ifndef GL_KHR_debug /* extension should be added by aliasing */
#error
#endif
int main(void) {
return 0;
}

View File

@@ -0,0 +1,17 @@
/*
* GL 2.1 All extensions, with aliasing
*
* GLAD: $GLAD --out-path=$tmp --api="gl:compatibility=2.1" c --loader --alias
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/gl.c -ldl
* RUN: $tmp/test
*/
#include <glad/gl.h>
#ifndef GL_KHR_debug
#error
#endif
int main(void) {
return 0;
}

View File

@@ -0,0 +1,17 @@
/*
* GL 2.1 No extensions, with aliasing
*
* GLAD: $GLAD --out-path=$tmp --api="gl:compatibility=2.1" --extensions="" c --loader --alias
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/gl.c -ldl
* RUN: $tmp/test
*/
#include <glad/gl.h>
#ifndef GL_KHR_debug /* extension should be added by aliasing */
#error
#endif
int main(void) {
return 0;
}

View File

@@ -0,0 +1,14 @@
/*
* GL 4.6 No extensions, with aliasing
*
* GLAD: $GLAD --out-path=$tmp --api="gl:core=4.6" --extensions="" c --alias
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/gl.c -ldl
* RUN: $tmp/test
*/
#include <glad/gl.h>
int main(void) {
(void) glActiveTextureARB;
return 0;
}