Skip to content

Instantly share code, notes, and snippets.

@beugnen
Created May 20, 2012 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beugnen/2733061 to your computer and use it in GitHub Desktop.
Save beugnen/2733061 to your computer and use it in GitHub Desktop.
FBO Draw Sequence
- (void)glkView:(GLKView *)view drawInRect:(CGRect)rect
{
_myView->DrawToBackbuffer(); // this will draw in 2nd FBO
[((GLKView *) self.view) bindDrawable]; // reset to main framebuffer
_myView->RenderToMainscreen();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment