Created
October 14, 2012 19:50
-
-
Save banthar/3889621 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #cgo darwin LDFLAGS: -framework OpenGL -lGLEW | |
// #cgo windows LDFLAGS: -lglew32 -lopengl32 | |
// #cgo linux LDFLAGS: -lGLEW -lGL | |
// | |
// #include <stdlib.h> | |
// | |
// #include <GL/glew.h> | |
// | |
// #undef GLEW_GET_FUN | |
// #ifdef _WIN32 | |
// # define GLEW_GET_FUN(x) glewGetContext()->x | |
// #else | |
// # define GLEW_GET_FUN(x) (*x) | |
// #endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment