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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Rendering Bitmaps and<br />

Images<br />

• <strong>OpenGL</strong> can render blocks of pixels<br />

– Doesn’t understand image formats<br />

• Raster position controls placement of<br />

entire image<br />

– If the raster position is clipped, the entire<br />

block of pixels is not rendered<br />

glDrawPixels( width, height, format,<br />

type, pixels );<br />

glBitmap( width, height, xorig, yorig,<br />

xmove, ymove, bitmap );

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

Saved successfully!

Ooh no, something went wrong!