Sha256: 19041defeb5e670b9e01b8f157dd25e34957f8b0a172e8b82bdf405313467358
Contents?: true
Size: 490 Bytes
Versions: 37
Compression:
Stored size: 490 Bytes
Contents
// -*- objc -*- #include "../opengl.h" #include <vector> #import <OpenGLES/EAGL.h> namespace Rays { void OpenGL_set_context (Context context) { [EAGLContext setCurrentContext: (EAGLContext*) context]; } Context OpenGL_get_context () { return [EAGLContext currentContext]; } Context get_offscreen_context () { static Context context = NULL; if (!context) context = [[EAGLContext alloc] initWithAPI: kEAGLRenderingAPIOpenGLES3]; return context; } }// Rays
Version data entries
37 entries across 37 versions & 1 rubygems