Cool thanks - I'll take a look at those :)
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch
There's this: http://gamesfromwithin.com/remixing-opengl-and-uikit
which is an objc/C sample of doing it. It's still not the most efficient
means of handling the problem (since It creates a bitmap, renders to the
bitmap, and then gives *that* to opengl - not sure if there's a way to
directly poke
Hi Mark,
I'm not really sure how to convert an image into a texture, but you
can extract the raw bytes from a UIImage using some code like this:
NSData data = image.AsJPEG (1.0f);
MemoryStream memory = new MemoryStream ();
using (var stream = data.AsStream ()) {
byte[] buf = new byte[4096];
Hi,
Does anyone have an example of loading an image and turning it into a texture?
I can't find a sample anywhere, and I've given up searching through the API
docs :(
Thanks!
M
Mark Ripley
Founder
Effervescing Elephant Interactive
eeinteractive.com (http://eeinteractive.com/)
___