sio2ResourceRender and Transforms

View previous topic View next topic Go down

sio2ResourceRender and Transforms

Post  sctm81 on Tue May 19, 2009 1:35 am

I am transforming multiple objects separately using push and pop matrix commands in my render thread function. Is it possible to still use the sio2ResourceRender command with this scenario?

sctm81

Posts : 29
Join date : 2009-04-24

View user profile

Back to top Go down

Re: sio2ResourceRender and Transforms

Post  sio2interactive on Tue May 19, 2009 1:59 pm

You can only call GL function within a valid GL context. When you are creating another thread this thread doesn't have no context... you can of course create one and share resources with the main one. This is ideal for loading objects or texture or doing other GL calls.

Google a bit on that you'll find some examples.

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 37
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum