mail-archives/mono-osx/2011-February/003966.html

112 строки
4.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] MonoMac and OpenTK?
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20MonoMac%20and%20OpenTK%3F&In-Reply-To=AANLkTikfkBQBz%2Be-J4TAibA_GqDQfeT%3DHpLePprSXrvf%40mail.gmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="003952.html">
<LINK REL="Next" HREF="003967.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] MonoMac and OpenTK?</H1>
<B>kjpou</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20MonoMac%20and%20OpenTK%3F&In-Reply-To=AANLkTikfkBQBz%2Be-J4TAibA_GqDQfeT%3DHpLePprSXrvf%40mail.gmail.com"
TITLE="[Mono-osx] MonoMac and OpenTK?">kjpou at pt.lu
</A><BR>
<I>Sat Feb 5 04:21:32 EST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="003952.html">[Mono-osx] MonoMac and OpenTK?
</A></li>
<LI>Next message: <A HREF="003967.html">[Mono-osx] MonoMac and OpenTK?
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3966">[ date ]</a>
<a href="thread.html#3966">[ thread ]</a>
<a href="subject.html#3966">[ subject ]</a>
<a href="author.html#3966">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Miguel
So MonoMac will not be exposing the OpenGL bindings from MacOSX but
instead be integrating OpenTK? I have not touched MonoTouch in a really
long time so did not know that is what you guys were using.
I have had a working example of the bindings for OpenGL started on my
harddrive for a couple of weeks now. I wanted to write a screen capture
program and have it working with preliminary bindings. Basically enough
to create a screen capture using OpenGL and then saving that image off
to a .tiff file. Unfortunately the CGImageDestination class is throwing
me a curve ball and not working.
If we are waiting on the OpenTK bindings then will hold off on what I am
doing. If you are interested in having the beginnings of an OpenGL
bindings as well let me know.
Kenneth
On 2/4/11 4:18 PM, Miguel de Icaza wrote:
&gt;<i> Hello,
</I>&gt;<i>
</I>&gt;&gt;<i> A simple sequence like:
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> using OpenTK.Graphics.OpenGL;
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Console.WriteLine(&quot;MyOpenGLView.DrawRect() _version(-)&quot;);
</I>&gt;&gt;<i> string _version = GL.GetString(StringName.Version);
</I>&gt;&gt;<i> Console.WriteLine(&quot;MyOpenGLView.DrawRect() _version(+)=&quot; +
</I>&gt;&gt;<i> _version);
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> causes an exception.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Is OpenTK the right way to go under MonoMac?
</I>&gt;<i> We want to expose the same version of OpenTK that we use for MonoTouch
</I>&gt;<i> and Monodroid (which is slightly older than the current OpenTK) in
</I>&gt;<i> MonoMac, but we have not done any integration work yet.
</I>&gt;<i>
</I>&gt;<i> The reason for staying with an older version is that OpenTK broke
</I>&gt;<i> their API after we used it in MonoTouch, and we figured that we would
</I>&gt;<i> wait on that API release until they released a final API, to avoid
</I>&gt;<i> tracking changes every week.
</I>&gt;<i>
</I>&gt;<i> As for using the NSOpenGLView, I have not tried using it myself yet.
</I>&gt;<i>
</I>&gt;<i> Miguel
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Mono-osx mailing list
</I>&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">Mono-osx at lists.ximian.com</A>
</I>&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">http://lists.ximian.com/mailman/listinfo/mono-osx</A>
</I>&gt;<i>
</I></PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="003952.html">[Mono-osx] MonoMac and OpenTK?
</A></li>
<LI>Next message: <A HREF="003967.html">[Mono-osx] MonoMac and OpenTK?
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3966">[ date ]</a>
<a href="thread.html#3966">[ thread ]</a>
<a href="subject.html#3966">[ subject ]</a>
<a href="author.html#3966">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx">More information about the Mono-osx
mailing list</a><br>
</body></html>