static void _do_handle_if_error(
		const oglplus::ErrorInfo& error_info,
		GLuint program,
		GLuint location
	)
	{
		GLenum result = OGLPLUS_GLFUNC(GetError)();
		if(OGLPLUS_IS_ERROR(result != GL_NO_ERROR))
		{
			_handle_error(error_info, program, location, result);
		}
	}
Beispiel #2
0
DataGenerator::DataGenerator(QWidget *parent)
    :QWidget(parent),
      ui(new Ui::DataGenerator),
      m_cancel(false)
{
    ui->setupUi(this);

    // This connection will be queued because errors are emitted
    //  from the background thread
    connect(this, SIGNAL(NotifyError(std::shared_ptr<std::exception>)),
            this, SLOT(_handle_error(std::shared_ptr<std::exception>)));

    connect(this, SIGNAL(ProgressUpdated(int)), this, SLOT(_handle_progress(int)));
}