X-Git-Url: http://git.mutantstargoat.com?p=libgliar;a=blobdiff_plain;f=tests%2Fextbyindex%2Fextbyindex.c;fp=tests%2Fextbyindex%2Fextbyindex.c;h=092f2118a435badb1d93462f135f88d6c6d8d458;hp=0000000000000000000000000000000000000000;hb=93b177fff142057693f0c9e917b4e18c52edeb6b;hpb=42163e269cceab08031b949a2f7e2c92ca081cbb diff --git a/tests/extbyindex/extbyindex.c b/tests/extbyindex/extbyindex.c new file mode 100644 index 0000000..092f211 --- /dev/null +++ b/tests/extbyindex/extbyindex.c @@ -0,0 +1,23 @@ +#include +#define GL_GLEXT_PROTOTYPES 1 +#include +#include "glext.h" + +#if !defined(GL_VERSION_3_0) || !GL_VERSION_3_0 +#error "OpenGL version 3.0 required" +#endif + +int main(int argc, char **argv) +{ + int i, num_ext; + + glutInit(&argc, argv); + glutCreateWindow("ext-by-index"); + + glGetIntegerv(GL_NUM_EXTENSIONS, &num_ext); + printf("Extensions:\n"); + for(i=0; i