PrimaryFeather / Sparrow-Framework

The Open Source Game Engine for iOS
http://www.sparrow-framework.org
Other
538 stars 173 forks source link

Add a method to use a new shared EAGLContext #1052

Closed groves closed 11 years ago

groves commented 12 years ago

I pulled the code from http://forum.sparrow-framework.org/topic/thread-safety-when-rendering-spimages#post-9344 into useNewSharedEAGLContext on SPView. It creates a new EAGLContext with the main context's sharegroup. It then makes it the context for the current thread.

This is part of issue #1019.

PrimaryFeather commented 12 years ago

Thanks a lot! I'll have a look at it when I implement the next version (which will be very soon).

PrimaryFeather commented 11 years ago

Sparrow 2.0 allows you to access the EAGLContext of each "SPViewController" instance, and it has built-in methods to load textures asynchronously. So this has become obsolete now.