Sha256: aab27d103c31b9a25d4afdedbfffa3b7cb89d136a4c9e04d536b12ea61386d13

Contents?: true

Size: 693 Bytes

Versions: 5

Compression:

Stored size: 693 Bytes

Contents

#include <rucy.h>
#include "rays/rays.h"
#include "rays/opengl.h"
#include "defs.h"


using namespace Rucy;


static
VALUE init(VALUE self)
{
	Rays::init();
	return self;
}

static
VALUE fin(VALUE self)
{
	Rays::fin();
	return self;
}

static
VALUE init_offscreen_context(VALUE self)
{
	Rays::init_offscreen_context();
	return self;
}


static Module mRays;

void
Init_rays ()
{
	mRays = rb_define_module("Rays");
	mRays.define_singleton_method("init!", init);
	mRays.define_singleton_method("fin!", fin);
	rb_define_singleton_method(mRays, "init_offscreen_context", RUBY_METHOD_FUNC(init_offscreen_context), 0);
}


namespace Rays
{


	Module
	rays_module ()
	{
		return mRays;
	}


}// Rays

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rays-0.1.12 .doc/ext/rays/rays.cpp
rays-0.1.11 .doc/ext/rays/rays.cpp
rays-0.1.10 .doc/ext/rays/rays.cpp
rays-0.1.9 .doc/ext/rays/rays.cpp
rays-0.1.8 .doc/ext/rays/rays.cpp