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

Version Path
rays-0.2 src/ios/rays.mm
rays-0.2 src/osx/rays.mm
rays-0.1.49 src/osx/rays.mm
rays-0.1.49 src/ios/rays.mm
rays-0.1.48 src/ios/rays.mm
rays-0.1.48 src/osx/rays.mm
rays-0.1.47 src/ios/rays.mm
rays-0.1.47 src/osx/rays.mm
rays-0.1.46 src/ios/rays.mm
rays-0.1.46 src/osx/rays.mm
rays-0.1.45 src/ios/rays.mm
rays-0.1.45 src/osx/rays.mm
rays-0.1.44 src/ios/rays.mm
rays-0.1.44 src/osx/rays.mm
rays-0.1.43 src/osx/rays.mm
rays-0.1.43 src/ios/rays.mm
rays-0.1.42 src/osx/rays.mm
rays-0.1.42 src/ios/rays.mm
rays-0.1.40 src/ios/rays.mm
rays-0.1.40 src/osx/rays.mm