Sha256: 61862bf4e1d0ad676db71b6aa3980536d722c6d8d7e63f43e90deb208fedadc8
Contents?: true
Size: 610 Bytes
Versions: 74
Compression:
Stored size: 610 Bytes
Contents
// -*- objc -*- #include "rays/rays.h" #import <Foundation/Foundation.h> #include "rays/exception.h" #include "../opengl.h" namespace Rays { namespace global { static NSAutoreleasePool* pool = nil; }// global void init () { if (global::pool) rays_error(__FILE__, __LINE__, "Rays::init(): already initialized."); global::pool = [[NSAutoreleasePool alloc] init]; OpenGL_set_context(get_offscreen_context()); } void fin () { if (!global::pool) rays_error(__FILE__, __LINE__, "Rays::fin(): not initialized."); [global::pool release]; global::pool = nil; } }// Rays
Version data entries
74 entries across 37 versions & 1 rubygems