~ubuntu-branches/ubuntu/maverick/blender/maverick

« back to all changes in this revision

Viewing changes to extern/qdune/core/QDRender.h

  • Committer: Bazaar Package Importer
  • Author(s): Khashayar Naderehvandi, Khashayar Naderehvandi, Alessio Treglia
  • Date: 2009-01-22 16:53:59 UTC
  • mfrom: (14.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090122165359-v0996tn7fbit64ni
Tags: 2.48a+dfsg-1ubuntu1
[ Khashayar Naderehvandi ]
* Merge from debian experimental (LP: #320045), Ubuntu remaining changes:
  - Add patch correcting header file locations.
  - Add libvorbis-dev and libgsm1-dev to Build-Depends.
  - Use avcodec_decode_audio2() in source/blender/src/hddaudio.c

[ Alessio Treglia ]
* Add missing previous changelog entries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _QDRENDER_H
2
 
#define _QDRENDER_H
3
 
 
4
 
#define __BEGIN_QDRENDER namespace QDRender {
5
 
#define __END_QDRENDER }
6
 
 
7
 
#include <exception>
8
 
#include <cstdio>
9
 
 
10
 
//-------------------------------------------------------------------------------
11
 
// exception class for error reports
12
 
class RiException_t : public std::exception
13
 
{
14
 
private:
15
 
        RiException_t& operator=(const RiException_t&);
16
 
public:
17
 
        RiException_t(const char* _msg) : std::exception(), msg(_msg) {}
18
 
        RiException_t(const RiException_t& rie) : std::exception(), msg(rie.msg) {}
19
 
        virtual ~RiException_t() throw() {}
20
 
        virtual const char* what() const throw() { return msg; }
21
 
protected:
22
 
        const char* msg;
23
 
};
24
 
 
25
 
#endif // _QDRENDER_H