Custom header file

I’m using opengl and glut-3.7. I am looking to build a custom header. I got some pieces of this from the openGL bible. However, I don’t see anything listed for linux.


// OpenGL header file for my projects.

// windows
#ifdef WIN32
#include <windows.h>
#include <iostream>
#include <math.h>
#include <glee.h>
#include <gl/gl.h>

#include <gl/glu.h>
#include <glut.h>
#endif

// Mac Os X
#ifdef _APPLE_
#include <Carbon/Carbon.h>
#include <iostream>
#include <math.h>
#include "glee.h"
#include <GL/gl.h>

#include <GL/glu.h>
#include <Glut/glut.h>
#endif

// Linux
#ifdef // Unsure here
// linux version of carbon or window.h??
#include <iostream>
#include <math.h>
#include <GL/gl.h>

#include <GL/glu.h>
#include <GL/glut.h>
#ifdef //mirror the top

using namespace std;

This is what I usually run with. It’s the “whole kit & kaboodle.”

#include <X11/Xlib.h>
#include <X11/Xutil.h>

#define GL_GLEXT_PROTOTYPES
#define GLX_GLXEXT_PROTOTYPES

#include <GL/gl.h>
#include <gl/glu.h>
#include <GL/glx.h>
#include <GL/glxext.h>

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.