Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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..

share|improve this question
add comment

1 Answer 1

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

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

    [context presentRenderbuffer:GL_RENDERBUFFER];     
}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.