3
\$\begingroup\$

this is what i do to blit FBO onto screen in ViewController:

[m_Context presentRenderbuffer:GL_RENDERBUFFER];   

but i need something like glSwapBuffers, so that i can call it somewhere from the engine code ( which is cpp ) - to refresh the screen in special cases - is this available for iOS / how can i implement it - if i can at all..

\$\endgroup\$

1 Answer 1

3
\$\begingroup\$

Ok, i have solved it by a small util function:

void SwapBuffers()
{
    EAGLContext* context = [EAGLContext currentContext];

    [context presentRenderbuffer:GL_RENDERBUFFER];     
}
\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .