mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 05:35:48 +00:00
Add 'show all instances' mode, and make colours consistent. Closes #248
This commit is contained in:
+3
-1
@@ -463,9 +463,11 @@
|
||||
this.drawRange.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.drawRange.Items.AddRange(new object[] {
|
||||
"Only this draw",
|
||||
"Show previous instances",
|
||||
"Show all instances",
|
||||
"Show whole pass"});
|
||||
this.drawRange.Name = "drawRange";
|
||||
this.drawRange.Size = new System.Drawing.Size(121, 25);
|
||||
this.drawRange.Size = new System.Drawing.Size(140, 25);
|
||||
this.drawRange.SelectedIndexChanged += new System.EventHandler(this.drawRange_SelectedIndexChanged);
|
||||
//
|
||||
// toolStripSeparator4
|
||||
|
||||
@@ -303,12 +303,11 @@ namespace renderdocui.Windows
|
||||
m_MeshDisplay.solidShadeMode = SolidShadeMode.None;
|
||||
solidShading.SelectedIndex = 0;
|
||||
|
||||
m_MeshDisplay.thisDrawOnly = true;
|
||||
m_MeshDisplay.showPrevInstances = false;
|
||||
m_MeshDisplay.showAllInstances = false;
|
||||
m_MeshDisplay.showWholePass = false;
|
||||
drawRange.SelectedIndex = 0;
|
||||
|
||||
m_MeshDisplay.currentMeshColour = new FloatVector(1, 0, 0, 1);
|
||||
m_MeshDisplay.prevMeshColour = new FloatVector(0, 0, 0, 1);
|
||||
|
||||
if (m_Arcball != null)
|
||||
m_Arcball.Camera.Shutdown();
|
||||
if (m_Flycam != null)
|
||||
@@ -2990,7 +2989,16 @@ namespace renderdocui.Windows
|
||||
|
||||
private void drawRange_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
m_MeshDisplay.thisDrawOnly = (drawRange.SelectedIndex == 0);
|
||||
/*
|
||||
"Only this draw",
|
||||
"Show previous instances",
|
||||
"Show all instances",
|
||||
"Show whole pass"
|
||||
*/
|
||||
|
||||
m_MeshDisplay.showPrevInstances = (drawRange.SelectedIndex >= 1);
|
||||
m_MeshDisplay.showAllInstances = (drawRange.SelectedIndex >= 2);
|
||||
m_MeshDisplay.showWholePass = (drawRange.SelectedIndex >= 3);
|
||||
|
||||
render.Invalidate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user