18.07.2014 Views

An Interactive Introduction to OpenGL Programming

An Interactive Introduction to OpenGL Programming

An Interactive Introduction to OpenGL Programming

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>OpenGL</strong> Command<br />

Formats<br />

glVertex3fv( v )<br />

Number of<br />

components<br />

2 - (x,y)<br />

3 - (x,y,z)<br />

4 - (x,y,z,w)<br />

Data Type<br />

b - byte<br />

ub - unsigned byte<br />

s - short<br />

us - unsigned short<br />

i - int<br />

ui - unsigned int<br />

f - float<br />

d - double<br />

Vec<strong>to</strong>r<br />

omit “v” for<br />

scalar form<br />

glVertex2f( x, y )

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!