added functions to override the resolution and matrix transform of the viewer widget
While in most circumstances these shouldn't be used, they're useful for showing things like export previews
This commit is contained in:
@@ -69,6 +69,12 @@ void ViewerGLWidget::DisconnectColorManager()
|
||||
ConnectColorManager(nullptr);
|
||||
}
|
||||
|
||||
void ViewerGLWidget::SetMatrix(const QMatrix4x4 &mat)
|
||||
{
|
||||
matrix_ = mat;
|
||||
update();
|
||||
}
|
||||
|
||||
void ViewerGLWidget::SetOCIODisplay(const QString &display)
|
||||
{
|
||||
ocio_display_ = display;
|
||||
@@ -135,7 +141,7 @@ void ViewerGLWidget::paintGL()
|
||||
f->glBindTexture(GL_TEXTURE_2D, texture_);
|
||||
|
||||
// Blit using the pipeline retrieved in initializeGL()
|
||||
olive::gl::OCIOBlit(pipeline_, ocio_lut_, true);
|
||||
olive::gl::OCIOBlit(pipeline_, ocio_lut_, true, matrix_);
|
||||
|
||||
// Release retrieved texture
|
||||
f->glBindTexture(GL_TEXTURE_2D, 0);
|
||||
|
||||
Reference in New Issue
Block a user