A real programmer reads source code like poetry.
A real programmer doesn''t eat quiche.

Steve ''Sly'' Williams Code Monkey Krome Studios
quote:
Original post by NitroGL
Call this just before you draw the quad:void Billboard(void){ float temp[16]={ 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f }, m[16]; glGetFloatv(GL_MODELVIEW_MATRIX, m); temp[0]=matrix[0]; temp[1]=matrix[4]; temp[2]=matrix[8]; temp[4]=matrix[1]; temp[5]=matrix[5]; temp[6]=matrix[9]; temp[8]=matrix[2]; temp[9]=matrix[6]; temp[10]=matrix[10]; glMultMatrixf(temp);}
quote:
Original post by Parveen Kaler
I think he meant m[x] instead of matrix[x].