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

View File

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

View File

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

View File

@@ -0,0 +1,22 @@
/*
* Issue #171. Enums being aliased, but the enum that they are aliased to
* do not exist (e.g. because they don't exist in this profile).
*
* GLAD: $GLAD --out-path=$tmp --api="gl:core=4.5" --extensions="" c --loader
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include $tmp/src/gl.c -ldl
* RUN: $tmp/test
*/
#include <glad/gl.h>
#if GL_CLIP_DISTANCE0 != 0x3000
#error
#endif
#if GL_MAX_CLIP_DISTANCES != 0x0D32
#error
#endif
int main(void) {
return 0;
}