Thread: Pointer
View Single Post
  #6 (permalink)  
Old June 5th, 2007, 01:09 AM
rick84 rick84 is offline
Registered User
 
Join Date: Apr 2007
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

in opengl the is a corresponding fucntion glVertex3fv which takes a
pointer to an array where u have stored ur x,y,z co-ordinates.
try using it here's an example
int vert[] = {1,1,1};
glVertex3iv(vert);
in case of float just replace i by f in glVertex*v;

Reply With Quote