mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 23:46:41 +00:00
Add a function to fetch the texture display config from texture viewer
This commit is contained in:
@@ -964,6 +964,10 @@ struct ITextureViewerInvoker : UIThreadInvoker<ITextureViewer>
|
||||
return InvokeVoidFunction(&ITextureViewer::SetTextureOverlay, overlay);
|
||||
}
|
||||
bool IsZoomAutoFit() { return InvokeRetFunction<bool>(&ITextureViewer::IsZoomAutoFit); }
|
||||
TextureDisplay GetTextureDisplay()
|
||||
{
|
||||
return InvokeRetFunction<TextureDisplay>(&ITextureViewer::GetTextureDisplay);
|
||||
}
|
||||
float GetZoomLevel() { return InvokeRetFunction<float>(&ITextureViewer::GetZoomLevel); }
|
||||
void SetZoomLevel(bool autofit, float zoom)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user