Sha256: b057a79f256600dd005590b52cc534bb00b3910abdcb0ace2c8b50b06ce33b09

Contents?: true

Size: 987 Bytes

Versions: 25

Compression:

Stored size: 987 Bytes

Contents

// -*- c++ -*-
#pragma once
#ifndef __RAYS_EXCEPTION_H__
#define __RAYS_EXCEPTION_H__


#include <xot/exception.h>
#include <rays/defs.h>


namespace Rays
{


	class RaysError : public Xot::XotError
	{
		typedef Xot::XotError Super;
		public: RaysError (const char* str = NULL);
	};


	class OpenGLError : public RaysError
	{
		typedef RaysError Super;
		public: OpenGLError (const char* str = NULL);
	};


	class ShaderError : public OpenGLError
	{
		typedef OpenGLError Super;
		public: ShaderError (const char* str = NULL);
	};


	namespace ErrorFunctions
	{

		using namespace Xot::ErrorFunctions;

		[[noreturn]]
		void rays_error (
			const char* file, int line, const char* format = NULL, ...);

		[[noreturn]]
		void opengl_error (
			const char* file, int line, const char* format = NULL, ...);

		[[noreturn]]
		void shader_error (
			const char* file, int line, const char* format = NULL, ...);

	}// ErrorFunctions


	using namespace ErrorFunctions;


}// Rays


#endif//EOH

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
rays-0.3.2 include/rays/exception.h
rays-0.3.1 include/rays/exception.h
rays-0.3 include/rays/exception.h
rays-0.2.1 include/rays/exception.h
rays-0.2 include/rays/exception.h
rays-0.1.49 include/rays/exception.h
rays-0.1.48 include/rays/exception.h
rays-0.1.47 include/rays/exception.h
rays-0.1.46 include/rays/exception.h
rays-0.1.45 include/rays/exception.h
rays-0.1.44 include/rays/exception.h
rays-0.1.43 include/rays/exception.h
rays-0.1.42 include/rays/exception.h
rays-0.1.40 include/rays/exception.h
rays-0.1.39 include/rays/exception.h
rays-0.1.38 include/rays/exception.h
rays-0.1.37 include/rays/exception.h
rays-0.1.36 include/rays/exception.h
rays-0.1.35 include/rays/exception.h
rays-0.1.34 include/rays/exception.h