Last active
May 6, 2020 00:59
-
-
Save doremi31618/cceff71366e5ca46c2fa941bf76a2ae7 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
#include <iostream> | |
#include <GLUT/glut.h> | |
#define WINDOW_WIDTH 250 | |
#define WINDOW_HEIGHT 250 | |
int main(int argc, char * argv[]) { | |
//init the glut | |
glutInit(&argc, argv); | |
//setting display mode | |
glutInitDisplayMode(GLUT_DEPTH | GLUT_SINGLE | GLUT_RGB); | |
//setting the window size | |
glutInitWindowSize(WINDOW_WIDTH, WINDOW_HEIGHT); | |
//set the window position | |
glutInitWindowPosition(100,100); | |
//create the window | |
glutCreateWindow("First window"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment