PDA

View Full Version : using glVertex3{fd}{v} !



ggauravr
04-09-2010, 05:09 PM
Could anyone plz tell me how to use the glVertex func in vector form ??
The parameter takes the array in column or row major order ?
If we gotta specify 3 co-ordinates for a vertex.. then should those be in a single row ,3 columns(row vector) or 3 rows ,single column(so that it acts as a column vector) ??
and while specifying such vector form do we need to specify 4th values for an extra 'w' dimension of homogeneous system. ??
plz help.. thanks in advance

Alfonse Reinheart
04-09-2010, 05:24 PM
It's an array of 3 values. Like "GLfloat[3]" or "GLint[3]" or whatever.