Re: Quick question: easy way to draw bitmap?
Re: Quick question: easy way to draw bitmap?
- Subject: Re: Quick question: easy way to draw bitmap?
- From: Erik Buck <email@hidden>
- Date: Fri, 13 Jul 2007 11:40:06 -0400
Sorry, I was out of my mind. You actually want a line like the
following:
glTexImage2D(GL_TEXTURE_2D, 0, 3, imgWidth, imgHeight, 0, GL_RGB,
GL_UNSIGNED_SHORT_5_5_5_1, dataPtr);
Any you want to reference <http://developer.apple.com/documentation/
GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_texturedata/
chapter_10_section_5.html>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden