Commits

Anonymous committed e461980

Compiles and runs all tests on Linux. Mint.

  • Participants
  • Parent commits a55d237

Comments (0)

Files changed (5)

-
 
 local prelims =
 {
 	
 	glX =
 	{
+		[[lua $<dir>LoadGen.lua -spec=glX -style=pointer_cpp -stdext=extfiles/glx_common.txt $<dir>test/ptr_cpp/test]],
+		[[lua $<dir>LoadGen.lua -spec=glX -style=glload -extfile=$<dir>allglx.txt $<dir>test/glload_c/test]],
+		[[lua $<dir>LoadGen.lua -spec=glX -style=glload -extfile=$<dir>allglx.txt $<dir>test/glload_cpp/test]],
 	},
 }
 

extfiles/glx_common.txt

+ARB_create_context
+ARB_create_context_profile
+ARB_create_context_robustness
+ARB_fbconfig_float
+ARB_framebuffer_sRGB
+ARB_multisample
+EXT_create_context_es2_profile
+EXT_fbconfig_packed_float
+EXT_framebuffer_sRGB
+EXT_import_context
+EXT_swap_control
+EXT_swap_control_tear
+

test/glload_c/test.cpp

 
 #include "glload/gl_all.h"
 #include "glload/gl_load.h"
+#ifdef _WIN32
 #include "glload/wgl_all.h"
 #include "glload/wgl_load.h"
+#else
+#include "glload/glx_all.h"
+#include "glload/glx_load.h"
+#endif
 #include <GL/freeglut.h>
 
 GLuint positionBufferObject;
 
 	init();
 
+	#ifdef _WIN32
 	HDC hdc = wglGetCurrentDC();
 	didLoad = wgl_LoadFunctions(hdc);
 	printf("WGL: %i\n", didLoad);
+	#else
+	#endif
 
 	glutDisplayFunc(display); 
 	glutReshapeFunc(reshape);

test/glload_cpp/test.cpp

 
 #include "glload/gl_all.hpp"
 #include "glload/gl_load.hpp"
+#ifdef _WIN32
 #include "glload/wgl_all.hpp"
 #include "glload/wgl_load.hpp"
+#else
+#include "glload/glx_all.hpp"
+#include "glload/glx_load.hpp"
+#endif
 #include <GL/freeglut.h>
 
 GLuint positionBufferObject;
 
 	init();
 
+#ifdef _WIN32
 	HDC hdc = wglGetCurrentDC();
 	glload::LoadTest load = glload::LoadFunctions(hdc);
 	if(!load)
 		printf("WGL: %i\n", load.GetNumMissing());
 	else
 		printf("WGL Loaded!\n");
+#else
+#endif
 
 	glutDisplayFunc(display); 
 	glutReshapeFunc(reshape);

test/ptr_cpp/test.cpp

 #include <stdlib.h>
 
 #include "gl_test.hpp"
+#ifdef _WIN32
 #include "wgl_test.hpp"
+#else
+#include "glx_test.hpp"
+#endif
 #include <GL/freeglut.h>
 
 GLuint positionBufferObject;
 
 	init();
 
+#ifdef _WIN32
 	HDC hdc = wglGetCurrentDC();
 	wgl::exts::LoadTest load = wgl::sys::LoadFunctions(hdc);
 	if(!load)
 		printf("WGL: %i\n", load.GetNumMissing());
 	else
 		printf("WGL Loaded!\n");
+#else
+#endif
 
 	glutDisplayFunc(display); 
 	glutReshapeFunc(reshape);