Skip to content

Instantly share code, notes, and snippets.

@banthar
Created October 14, 2012 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banthar/3889621 to your computer and use it in GitHub Desktop.
Save banthar/3889621 to your computer and use it in GitHub Desktop.
// #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