mirror of
				https://github.com/thunderbrewhq/thunderbrew
				synced 2025-10-27 14:26:04 +03:00 
			
		
		
		
	 706c8903a1
			
		
	
	
		706c8903a1
		
			
		
	
	
	
	
		
			
			* chore(build): add vendored SDL 3.0.0 library * chore(build): add vendored glew-cmake-2.2.0 library * feat(console): in the presence of -opengl launch flag, change GxApi to OpenGl * feat(gx): add uncompleted CGxDeviceGLSDL targeting Windows and Linux * chore(build): change SDL3 linkage from shared (bad) to to static (good)
		
			
				
	
	
		
			24 lines
		
	
	
		
			650 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			650 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <GL/glew.h>
 | |
| 
 | |
| #include <stdio.h>
 | |
| #include <stdlib.h>
 | |
| 
 | |
| #define S(x) SS(x)
 | |
| #define SS(x) #x
 | |
| 
 | |
| int main(int argc, char* argv[]) {
 | |
|     printf("GLEW CMake test, %s build\n",
 | |
|         S(GLEW_CMAKE_TEST_CONFIG));
 | |
|     printf("-- linked to %s which is %s\n",
 | |
|         S(GLEW_CMAKE_TEST_TARGET_FILE_NAME),
 | |
|         S(GLEW_CMAKE_TEST_TARGET_TYPE));
 | |
|     const GLubyte* v = glewGetString(GLEW_VERSION);
 | |
|     if(v) {
 | |
|         printf("-- glewGetString(GLEW_VERSION) returns %s\n-- test passed.\n", v);
 | |
|         return EXIT_SUCCESS;
 | |
|     } else {
 | |
|         printf("-- glewGetString(GLEW_VERSION) returns NULL\n-- test failed.\n");
 | |
|         return EXIT_FAILURE;
 | |
|     }
 | |
| }
 |