75
75
/// @param height Height in pixels of viewport
76
76
void Render(int x, int y, int width, int height);
78
/// @brief Constructor
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);
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 {
94
88
VideoOutRenderException(const char *func, int err)
95
89
: VideoOutException(std::string(func) + " failed with error code " + std::to_string(err))
97
const char * GetName() const override { return "videoout/opengl/render"; }
98
Exception * Copy() const override { return new VideoOutRenderException(*this); }
100
/// @class VideoOutOpenGLException
101
/// @extends VideoOutException
102
/// @brief An OpenGL error occurred while setting up the video display
103
class VideoOutInitException : public VideoOutException {
93
/// An OpenGL error occurred while setting up the video display
94
class VideoOutInitException final : public VideoOutException {
105
96
VideoOutInitException(const char *func, int err)
106
97
: VideoOutException(std::string(func) + " failed with error code " + std::to_string(err))
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); }