Re: The iPhone SDK OpenGL ES Application template
Thank you David for the tip! On Wed, Jul 22, 2009 at 5:11 AM, David Duncan david.dun...@apple.comwrote: On Jul 21, 2009, at 10:18 AM, Wilson Chen wrote: My question is: since an EAGLView is a subclass of UIView, is there a particular reason for the template to not follow the common pattern to adhere the beloved MVC? There is really no difference in if you want to have the view controller or not. About the only thing to keep in mind is that if you do use a view controller, don't use the orientation change support. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
The iPhone SDK OpenGL ES Application template
Hi all, For a typical iPhone application, after the application is finished launching, the app delegate would then 1) create an instance of UIViewController; 2) ask the view controller for its view which the controller creates on demand; 3) add the view as a subview of the window. I really like this pattern since it adheres the MVC pattern. However, inside the OpenGL ES Application XCode template, the EAGLView is added directly to the window in the nib file, leaving the controller out. My question is: since an EAGLView is a subclass of UIView, is there a particular reason for the template to not follow the common pattern to adhere the beloved MVC? ciao, wils ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: The iPhone SDK OpenGL ES Application template
On Tue, Jul 21, 2009 at 10:18 AM, Wilson Chencanti.m...@gmail.com wrote: My question is: since an EAGLView is a subclass of UIView, is there a particular reason for the template to not follow the common pattern to adhere the beloved MVC? Speed? If you're using OpenGL, you're probably developing a game, and are probably going to implement your own UI anyway. The template sets you up and gets out of your way. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: The iPhone SDK OpenGL ES Application template
On Jul 21, 2009, at 10:18 AM, Wilson Chen wrote: My question is: since an EAGLView is a subclass of UIView, is there a particular reason for the template to not follow the common pattern to adhere the beloved MVC? There is really no difference in if you want to have the view controller or not. About the only thing to keep in mind is that if you do use a view controller, don't use the orientation change support. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: The iPhone SDK OpenGL ES Application template
Am 21.07.2009 um 21:11 schrieb David Duncan: There is really no difference in if you want to have the view controller or not. About the only thing to keep in mind is that if you do use a view controller, don't use the orientation change support. Could you please elaborate on this? I am very interested to know - why it should be faster to do it in OpenGL - how you do it in OpenGL Thanx, atze ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: The iPhone SDK OpenGL ES Application template
On Jul 21, 2009, at 2:01 PM, Alexander Spohr wrote: I am very interested to know - why it should be faster to do it in OpenGL If you use the built in orientation support, then we place a transform on the view's layer. A transform on OpenGL content will force your rendering onto a slower path on some devices. - how you do it in OpenGL You need to register for UIDevice orientation notifications and use those notifications to rotate your modelview matrix. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com