~ubuntu-branches/ubuntu/wily/aegisub/wily-proposed

« back to all changes in this revision

Viewing changes to src/video_out_gl.h

  • Committer: Package Import Robot
  • Author(s): Sebastian Reichel, Pascal De Vuyst, Juan Picca, Sebastian Reichel
  • Date: 2015-08-04 21:40:50 UTC
  • mfrom: (5.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20150804214050-y2aghm9vdksoc8t7
Tags: 3.2.2+dfsg-1
[ Pascal De Vuyst ]
* Fix Typo in package description (Closes: #739219)

[ Juan Picca ]
* Add patch to fix reproducible build (Closes: #789728)

[ Sebastian Reichel ]
* New upstream release
 - remove vendor directory from orig tarball
* Update Debian Standards Version to 3.9.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        /// @param height Height in pixels of viewport
76
76
        void Render(int x, int y, int width, int height);
77
77
 
78
 
        /// @brief Constructor
79
78
        VideoOutGL();
80
 
        /// @brief Destructor
81
79
        ~VideoOutGL();
82
80
};
83
81
 
84
 
/// @class VideoOutException
85
 
/// @extends Aegisub::Exception
86
 
/// @brief Base class for all exceptions thrown by VideoOutGL
87
 
DEFINE_BASE_EXCEPTION_NOINNER(VideoOutException, agi::Exception)
 
82
/// Base class for all exceptions thrown by VideoOutGL
 
83
DEFINE_EXCEPTION(VideoOutException, agi::Exception);
88
84
 
89
 
/// @class VideoOutRenderException
90
 
/// @extends VideoOutException
91
 
/// @brief An OpenGL error occurred while uploading or displaying a frame
92
 
class VideoOutRenderException : public VideoOutException {
 
85
/// An OpenGL error occurred while uploading or displaying a frame
 
86
class VideoOutRenderException final : public VideoOutException {
93
87
public:
94
88
        VideoOutRenderException(const char *func, int err)
95
89
        : VideoOutException(std::string(func) + " failed with error code " + std::to_string(err))
96
90
        { }
97
 
        const char * GetName() const override { return "videoout/opengl/render"; }
98
 
        Exception * Copy() const override { return new VideoOutRenderException(*this); }
99
91
};
100
 
/// @class VideoOutOpenGLException
101
 
/// @extends VideoOutException
102
 
/// @brief An OpenGL error occurred while setting up the video display
103
 
class VideoOutInitException : public VideoOutException {
 
92
 
 
93
/// An OpenGL error occurred while setting up the video display
 
94
class VideoOutInitException final : public VideoOutException {
104
95
public:
105
96
        VideoOutInitException(const char *func, int err)
106
97
        : VideoOutException(std::string(func) + " failed with error code " + std::to_string(err))
107
98
        { }
108
99
        VideoOutInitException(const char *err) : VideoOutException(err) { }
109
 
        const char * GetName() const override { return "videoout/opengl/init"; }
110
 
        Exception * Copy() const override { return new VideoOutInitException(*this); }
111
100
};