Skip to content

Instantly share code, notes, and snippets.

@LearnCocos2D
Last active December 22, 2015 16:19
Show Gist options
  • Save LearnCocos2D/6498646 to your computer and use it in GitHub Desktop.
Save LearnCocos2D/6498646 to your computer and use it in GitHub Desktop.
getting SK opengl context (in viewDidAppear or later)
#if TARGET_OS_IPHONE
id context = [EAGLContext currentContext];
#else
id context = [NSOpenGLContext currentContext];
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment