Skip to content

Instantly share code, notes, and snippets.

@jes
Created December 10, 2011 17:34
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 jes/1455696 to your computer and use it in GitHub Desktop.
Save jes/1455696 to your computer and use it in GitHub Desktop.
/* glCreateProgram test case */
#include "GLee.h"
#include <stdio.h>
#include <GL/glut.h>
int main(int argc, char **argv) {
glutInit(&argc, argv);
glutInitDisplayString("rgb double depth>=32");
glutInitWindowSize(400, 300);
glutCreateWindow("bazinga!");
GLuint x = glCreateProgram();
if(glIsProgram(x) == GL_TRUE)
printf("All is well.\n");
else
printf("Shit the bed!\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment