mail-archives/monodroid/2011-December/007519.html

71 строка
3.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [mono-android] Handling texture loss in OpenTK on mono for android
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20Handling%20texture%20loss%20in%20OpenTK%20on%20mono%20for%0A%09android&In-Reply-To=CAO49F-KQ4yqr5V1mox8T0Y7tb40AaUxA29SbmOj2pq2sBftcsw%40mail.gmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="007513.html">
<LINK REL="Next" HREF="007520.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[mono-android] Handling texture loss in OpenTK on mono for android</H1>
<B>chris@Terrago</B>
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20Handling%20texture%20loss%20in%20OpenTK%20on%20mono%20for%0A%09android&In-Reply-To=CAO49F-KQ4yqr5V1mox8T0Y7tb40AaUxA29SbmOj2pq2sBftcsw%40mail.gmail.com"
TITLE="[mono-android] Handling texture loss in OpenTK on mono for android">cdrake at terragotech.com
</A><BR>
<I>Mon Dec 5 17:43:57 EST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="007513.html">[mono-android] Handling texture loss in OpenTK on mono for android
</A></li>
<LI>Next message: <A HREF="007520.html">[mono-android] Handling texture loss in OpenTK on mono for android
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7519">[ date ]</a>
<a href="thread.html#7519">[ thread ]</a>
<a href="subject.html#7519">[ subject ]</a>
<a href="author.html#7519">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Andreia,
Thanks for the clarification. I rechecked it and you are correct. You do get
an OnLoad event after the pause, however you do not get an onResume event
and the graphics context is null. For some reason this only occurs on
rotation and sleep, if the activity is paused because another activity is
becoming active then the context is recreated successfully upon resuming the
activity hosting the AndroidGameView.
Chris
--
View this message in context: <A HREF="http://mono-for-android.1047100.n5.nabble.com/Handling-texture-loss-in-OpenTK-on-mono-for-android-tp5045738p5050387.html">http://mono-for-android.1047100.n5.nabble.com/Handling-texture-loss-in-OpenTK-on-mono-for-android-tp5045738p5050387.html</A>
Sent from the Mono for Android mailing list archive at Nabble.com.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="007513.html">[mono-android] Handling texture loss in OpenTK on mono for android
</A></li>
<LI>Next message: <A HREF="007520.html">[mono-android] Handling texture loss in OpenTK on mono for android
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7519">[ date ]</a>
<a href="thread.html#7519">[ thread ]</a>
<a href="subject.html#7519">[ subject ]</a>
<a href="author.html#7519">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/monodroid">More information about the Monodroid
mailing list</a><br>
</body></html>