libgoatvr
diff src/opengl.c @ 9:d12592558809
build on macosx
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 20 Sep 2014 16:52:42 +0300 |
parents | 3d9ec6fe97d7 |
children | 61feb3661397 |
line diff
1.1 --- a/src/opengl.c Sat Sep 20 13:22:53 2014 +0300 1.2 +++ b/src/opengl.c Sat Sep 20 16:52:42 2014 +0300 1.3 @@ -12,7 +12,7 @@ 1.4 { 1.5 return glXGetProcAddress((const unsigned char*)name); 1.6 } 1.7 -#endif 1.8 +#endif /* __unix__ */ 1.9 1.10 #ifdef WIN32 1.11 void vrimp_swap_buffers(void) 1.12 @@ -25,4 +25,20 @@ 1.13 { 1.14 return wglGetProcAddress(name); 1.15 } 1.16 -#endif 1.17 +#endif /* WIN32 */ 1.18 + 1.19 +#ifdef __APPLE__ 1.20 +void vrimp_swap_buffers(void) 1.21 +{ 1.22 + /* TODO: I don't think this can even be done without obj-c and a pointer 1.23 + * to a GLView class or whatever the fuck it's called... investigate further 1.24 + */ 1.25 +} 1.26 + 1.27 + 1.28 +void (*vrimp_glfunc(const char *name))() 1.29 +{ 1.30 + /* TODO: whatever */ 1.31 + return 0; 1.32 +} 1.33 +#endif /* __APPLE__ */