PDA

View Full Version : Compiling Real-Time Volume Graphics Book Samples



Iblues76
05-23-2011, 07:57 AM
Hi,
I'm trying to compile the samples from the book Real-Time Volume Graphics.
I changed the glut to the freeglut (I'm running windows 7)
I also changed to freeglut_ext in the include files.
However, I'm getting errors, for example:

PFNGLTEXIMAGE3DPROC glTexImage3D = NULL;
missing ';' before identifier 'glTexImage3D'

GL_TEXTURE_3D
Undeclared Identifier.

There are more errors, but I think they are all related.
Am I missing an include?

here is the include files
<code>
#include "app/SimpleSlicerWindow.h"
#include "core/ArcBall.h"
#include "transfunc/TransferFunction.h"
#include <math.h>
#include <gl/GL.h>
//#include <gl/GLU.h>
#include <GL/freeglut.h>
#include <GL/freeglut_ext.h>
#include <stdio.h>
#include <assert.h>
</code>
thanks,
Francisco

Iblues76
05-23-2011, 12:26 PM
Nevermind... it works...

I needed to include glew