[MonoTouch] CVOpenGLESTextureCacheCreateTextureFromImage in Monotouch?
Rolf Bjarne Kvinge
rolf at xamarin.com
Wed Mar 7 11:13:24 UTC 2012
Hi,
It looks like these methods aren't bound in MonoTouch. You can use normal
p/invoke to bind them, this is quite easy (this code is untested, but it
should get you on the right track):
[DllImport ("/System/Library/Frameworks/CoreVideo.framework/CoreVideo")]
int CVOpenGLESTextureCacheCreateTextureFromImage (
IntPtr allocator,
IntPtr textureCache,
IntPtr sourceImage,
IntPtr textureAttributes,
int target,
int internalFormat,
int width,
int height,
int format,
int type,
int planeIndex,
ref IntPtr textureOut);
I'll look into getting this methods bound in the next version of MonoTouch.
Rolf
On Wed, Mar 7, 2012 at 8:51 AM, sinsro <sinsro at hotmail.com> wrote:
> I need to port code from xcode to Monotouch which is using the iOS 5 method
> CVOpenGLESTextureCacheCreateTextureFromImage. But, what is the Monotouch
> equivalent?
>
> I am also looking for CVOpenGLESTextureCacheCreate, but no trace again...
> :S
>
> How can I use these methods from Monotouch?
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/CVOpenGLESTextureCacheCreateTextureFromImage-in-Monotouch-tp4452542p4452542.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monotouch/attachments/20120307/8ef439e2/attachment.html>
More information about the MonoTouch
mailing list