Sha256: 81848296db5b01676bcfc83fe1b310c252a27e94365a102d0707b6b3b52630bd

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

#include "rays/ruby/exception.h"


#include "defs.h"


static Class cRaysError;
static Class cOpenGLError;
static Class cShaderError;

void
Init_exception ()
{
	Module mRays = rb_define_module("Rays");

	cRaysError = rb_define_class_under(mRays, "RaysError", rb_eRuntimeError);
	cOpenGLError = rb_define_class_under(mRays, "OpenGLError", cRaysError);
	cShaderError = rb_define_class_under(mRays, "ShaderError", cOpenGLError);
}


namespace Rays
{


	Class
	rays_error_class ()
	{
		return cRaysError;
	}

	Class
	opengl_error_class ()
	{
		return cOpenGLError;
	}

	Class
	shader_error_class ()
	{
		return cShaderError;
	}


}// Rays

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rays-0.1.29 .doc/ext/rays/exception.cpp