Last active
December 22, 2015 16:19
-
-
Save LearnCocos2D/6498646 to your computer and use it in GitHub Desktop.
getting SK opengl context (in viewDidAppear or later)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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