View Single Post
Old 05-07-2006, 07:01 AM   #2 (permalink)
AssKoala
Anti-Zealot
 
AssKoala's Avatar
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 72
AssKoala is on a distinguished road
Send a message via AIM to AssKoala Send a message via MSN to AssKoala Send a message via Yahoo to AssKoala
Look at what OpenGL asks for:

Code:
GLfloat *points
What you're passing it is a GLfloat****, that is the address of a triple pointer.

Now, there's a specific reason as to why it makes absolutely no sense to send a multidimensional array to an OpenGL function. It doesn't know the bounds of the array. If you were to send it that three dimensional array, it wouldn't be able to figure out how to dereference the array properly without passing it a plethora of extra parameters. OpenGL functions already take enough parameters to require pushing them onto the stack, but the fewer the better.

The bluebook has this listed: Click Me!

That should at least be a start on understanding what you need to send that function.

Here's what the bluebook says about that parameter:
Quote:
Originally Posted by The OpenGL Bluebook v1.0
Specifies an array containing control points for the NURBS surface. The offsets between successive control points in the parametric u and v directions are given by s_stride and t_stride.
__________________
If you always think like an expert, you'll always be a beginner. | "A handful of knowledgeable people is more effective than an army of fools" -Writing Secure Code, 2nd Ed.
AssKoala is offline   Reply With Quote