Sha256: 875ac02b69d3a4ab43beede32d2e3103ccb01bb5e0ccd6fa678221ac824523b2
Contents?: true
Size: 570 Bytes
Versions: 10
Compression:
Stored size: 570 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__, "already initialized."); global::pool = [[NSAutoreleasePool alloc] init]; OpenGL_init(); } void fin () { if (!global::pool) rays_error(__FILE__, __LINE__, "not initialized."); OpenGL_fin(); [global::pool release]; global::pool = nil; } }// Rays
Version data entries
10 entries across 5 versions & 1 rubygems