I would like to load an imagefile to be used as a texture (.png or .jpg).
I have looked several examples (e.g. PBORenderToVertexArray load_texture() ) and I can't believe that I need 30+ lines of code for just to load an image while there are NSImage etc. classes which does same with one extra initParameter.
1) With Leopard what is the "correct" and easy way to load texture from file (inside appbundle) ?
2) I have also several small images on view as NSImageView or NSImageCell. How can I use those as a texture?
I am trying to learn the differences with NSImage, CIImage, ImageRef, etc.. (as apparently can be seen from my question).
Thanks.
-Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden
This email sent to email@hidden