POLL: Using IwGameAds or Planning To?

Hi Everyone,

We currently don’t have a clue as to how many developers are using or planning to use IwGameAds. Please let us know by selecting one of the following options

Are you using or planning on using IwGameAds?

View Results

Loading ... Loading ...

Thanks for voting!

IwGameAds and Raw OpenGL Issues

Its been brought to our attention that if you are using raw Open GL functions and IwGameAds together then one system can affect the other.

The problem is that Iw2D is quite naughty in that it does not really save / restore GL states so many of the open GL states could have changed. A few things we noticed in particular are the GL shading model and texture matrix.

To switch back to smooth shading use:

     glShadeModel(GL_SMOOTH);

To repair the texture matrix add the following before you render your GL content:

    glMatrixMode(GL_TEXTURE);
    glPushMatrix();
    glLoadIdentity();

After your GL rendering is finished restore the GL texture matrix:

    glMatrixMode(GL_TEXTURE);
    glPopMatrix();

We will provide an additional GL test bed in our next update