|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
// This yields a yellowish image
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, [image size].width,
[image size].height, 0, GL_RGB, GL_UNSIGNED_BYTE,
[[image TIFFRepresentation] bytes] );
Yet NSBitmapImageRep is initialized with TIFFRepresentation.
I was trying to avoid the overhead of creating the NSBitmapImageRep, just for kicks.
| References: | |
| >NSImage vs. NSBitmapImageRep color differences? (From: Christopher Nagel <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.