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:
@@ -185,6 +185,16 @@ void ViewerWidget::SetColorMenuEnabled(bool enabled)
|
||||
gl_widget_->SetColorMenuEnabled(enabled);
|
||||
}
|
||||
|
||||
void ViewerWidget::SetOverrideSize(int width, int height)
|
||||
{
|
||||
SizeChangedSlot(width, height);
|
||||
}
|
||||
|
||||
void ViewerWidget::SetMatrix(const QMatrix4x4 &mat)
|
||||
{
|
||||
gl_widget_->SetMatrix(mat);
|
||||
}
|
||||
|
||||
void ViewerWidget::SetTexture(OpenGLTexturePtr tex)
|
||||
{
|
||||
if (tex == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user