Sha256: 0626ddace0bdde054ba64715abd607cab0a5fde2b6ff161df7b5c4ebedb114bd
Contents?: true
Size: 642 Bytes
Versions: 6
Compression:
Stored size: 642 Bytes
Contents
// -*- objc -*- #include "../opengl.h" #import <OpenGLES/EAGL.h> #include "rays/rays.h" #include "rays/exception.h" namespace Rays { static EAGLContext* get_opengl_offscreen_context () { static EAGLContext* context = nil; if (!context) context = [[EAGLContext alloc] initWithAPI: kEAGLRenderingAPIOpenGLES3]; return context; } void OpenGL_init () { activate_offscreen_context(); } void OpenGL_fin () { } Context get_offscreen_context () { return get_opengl_offscreen_context(); } void activate_offscreen_context () { [EAGLContext setCurrentContext: get_opengl_offscreen_context()]; } }// Rays
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
rays-0.3.4 | src/ios/opengl.mm |
rays-0.3.3 | src/ios/opengl.mm |
rays-0.3.2 | src/ios/opengl.mm |
rays-0.3.1 | src/ios/opengl.mm |
rays-0.3 | src/ios/opengl.mm |
rays-0.2.1 | src/ios/opengl.mm |