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.

Working with <strong>OpenGL</strong><br />

Extensions<br />

• <strong>OpenGL</strong> is always changing<br />

– features are first introduced as extensions<br />

• Call glGetString( GL_EXTENSIONS ) <strong>to</strong> see<br />

the extensions for your <strong>OpenGL</strong> implementation<br />

• glext.h contains latest function names and<br />

<strong>to</strong>kens<br />

• May need <strong>to</strong> query a function pointer <strong>to</strong><br />

gain access <strong>to</strong> extension’s function<br />

– Window system dependent pointer request<br />

function<br />

• glXGetProcAddress(), wglGetProcAddress()

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

Saved successfully!

Ooh no, something went wrong!