PDA

View Full Version : custom header file



Fuzzy
05-15-2008, 09:02 AM
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;

147-2
06-02-2008, 07:55 AM
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>