Initial commit - some engine bugs stopping compiling
This commit is contained in:
17
third-party/glad/test/c/compile/gl/default/001/test.c
vendored
Normal file
17
third-party/glad/test/c/compile/gl/default/001/test.c
vendored
Normal 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;
|
||||
}
|
||||
17
third-party/glad/test/c/compile/gl/default/002/test.c
vendored
Normal file
17
third-party/glad/test/c/compile/gl/default/002/test.c
vendored
Normal 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;
|
||||
}
|
||||
17
third-party/glad/test/c/compile/gl/default/003/test.c
vendored
Normal file
17
third-party/glad/test/c/compile/gl/default/003/test.c
vendored
Normal 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;
|
||||
}
|
||||
17
third-party/glad/test/c/compile/gl/default/004/test.c
vendored
Normal file
17
third-party/glad/test/c/compile/gl/default/004/test.c
vendored
Normal 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;
|
||||
}
|
||||
17
third-party/glad/test/c/compile/gl/default/005/test.c
vendored
Normal file
17
third-party/glad/test/c/compile/gl/default/005/test.c
vendored
Normal 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;
|
||||
}
|
||||
17
third-party/glad/test/c/compile/gl/default/006/test.c
vendored
Normal file
17
third-party/glad/test/c/compile/gl/default/006/test.c
vendored
Normal 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;
|
||||
}
|
||||
22
third-party/glad/test/c/compile/gl/default/007/test.c
vendored
Normal file
22
third-party/glad/test/c/compile/gl/default/007/test.c
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user