10.07.2015 Views

Texturas - Unisinos

Texturas - Unisinos

Texturas - Unisinos

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

<strong>Texturas</strong> no OpenGLDepois, carregar os bytes da imagem para o estadode textura do OpenGL. Pode-se usar:void glTexImage1D(GLenum target, GLintlevel, GLint internalformat, GLsizeiwidth, GLint border,GLenum format, GLenumtype, void *data);void glTexImage2D(target, level,internalformat, width, height, border,format, type, data);void glTexImage3D(target, level,internalformat, width, height, depth,border, format, type, data);Estes métodos indicam ao OpenGL como tratar os dados recebidos04/12/2011 Leandro Tonietto 14quarta-feira, 26 de setembro de 12

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

Saved successfully!

Ooh no, something went wrong!