# Thread: glVertex3f into some sort of matrix?

1. ## glVertex3f into some sort of matrix?

I have been drawing my letters by doing somthing simular this this
glBegin(GL_LINES); //LETTER N

glVertex3f(50.0, 50.0, 0.0);
glVertex3f(50.0, 350.0, 0.0);

glVertex3f(50.0, 350.0, 0.0);
glVertex3f(180.0, 350.0, 0.0);

When my tutor does her letters, she does them like this
w[0][0]=100;
w[0][1]=250;
w[1][0]=250;
w[1][1]=50;
w[2][0]=300;
w[2][1]=100;
w[3][0]=350;
w[3][1]=50;

How would i turn the way i do them, into the way she does them?
thanks

2. ## Re: glVertex3f into some sort of matrix?

search glVertex2fv

3. ## Re: glVertex3f into some sort of matrix?

So do i just take the first two values out of my one and put them into their own array?

4. ## Re: glVertex3f into some sort of matrix?

w is an array of point (they are already in their own array).
To draw them you can simply do:
Code :
```glBegin(yourPrimitiveHere);
for(int i = 0; i < numberOfPointInW; i++)
glVertex2fv(w[i]);
glEnd();```

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•