views:

54

answers:

1

Hey - just starting out trying to get some openGL into my iphone app and came across this error for this bit of code:

static const GLfloat pyramidVertices[] = { 
   0.0f,  1.0f,  0.0f,  
  -1.0f, -1.0f,  1.0f, 
   1.0f, -1.0f,  1.0f,  
   1.0f, -1.0f, -1.0f,  
  -1.0f, -1.0f, -1.0f  
};

am I not including something I should be? Without this everything compiles fine.

Cheers!

+5  A: 

You haven't imported gl.h which defines GLfloat.

Rob Napier
Perfect - I'm such an idiot!!
FlimFlam