Does Oneiros Dream?

そこら辺にいるクソガキのブログ

Entries from 2015-04-21 to 1 day

How to use OpenGL for OSX

Difference by the OS of OpenGL is below.Mac: #include <GLUT/glut.h> #include <OpenGL/gl.h>Windows & Linux: #include <GL/glut.h> #include <GL/gl.h>ex. #ifdef __APPLE__ #include <GLUT/glut.h> #include <OpenGL/gl.h> #else #include <GL/glut.h> #include <GL/gl.h> #endif /* Copyright (c) Mark J. Kilgard, …</gl/gl.h></gl/glut.h></opengl/gl.h></glut/glut.h></gl/gl.h></gl/glut.h></opengl/gl.h></glut/glut.h>