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.

Specify the Texture Image<br />

• Define a texture image from an array of<br />

texels in CPU memory<br />

glTexImage2D( target, level, components,<br />

w, h, border, format, type, *texels );<br />

– dimensions of image must be powers of 2<br />

• Texel colors are processed by pixel pipeline<br />

– pixel scales, biases and lookups can be<br />

done

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

Saved successfully!

Ooh no, something went wrong!