FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

sio2InitGL problem

3 posters

Go down

sio2InitGL problem Empty sio2InitGL problem

Post  qflov Mon May 25, 2009 5:26 am

Hello
I'm preety new using graphic engines, currently developing a 2d game on iphone. I have tried using Sio2Image for rendering a image on the screen. I have succeded only to draw images that are power of 2, so I used some tutorials from http://www.71squared.co.uk/category/iphone-game-programming/, based on Texture2D from the crash landing example.
They have worked so far but the problem occurs when I'm using Image class. It's not rendering anything unless I comment sio2InitGl.
I can't find the code for this init function. Can you please make it public, so can you tell me what can I do so I can use both sio2 and the classes in that link ?
Thanks!

qflov

Posts : 1
Join date : 2009-05-25

Back to top Go down

sio2InitGL problem Empty Re: sio2InitGL problem

Post  sio2interactive Mon May 25, 2009 5:47 am

Make sure that you reset the machine state that this class set ON.
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

sio2InitGL problem Empty Re: sio2InitGL problem

Post  uprise78 Mon May 25, 2009 11:27 am

The power of 2 limitation is openGL. Texture2d just hides it by filling your non power of 2 images with empty space. Not to mention it is very inefficient at drawing. Apple made it as a quick demo with no intention of having it used for an actual game.

If you want to use SIO2 for a 2d game you may want to check out https://sio2interactive.forumotion.net/sio2-engine-f3/sprite-additions-t502.htm which should provide a good base for you.

uprise78

Posts : 228
Join date : 2008-10-31

Back to top Go down

sio2InitGL problem Empty Re: sio2InitGL problem

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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