Updated tessellation text interface
Examining the tessellation code I realized there was a built-in toggle for the wireframe which is hidden due to lack of text overlayed so quickly added it.
This commit is contained in:
parent
44bcac9be3
commit
f7ab861ef5
1 changed files with 4 additions and 1 deletions
|
|
@ -580,11 +580,14 @@ public:
|
|||
textOverlay->addText("Tessellation level: " + ss.str() + " (Buttons L1/R1 to change)", 5.0f, 85.0f, VulkanTextOverlay::alignLeft);
|
||||
if (deviceFeatures.fillModeNonSolid) {
|
||||
textOverlay->addText("Press \"Button X\" to toggle splitscreen", 5.0f, 100.0f, VulkanTextOverlay::alignLeft);
|
||||
textOverlay->addText("Press \"Button A\" to toggle wireframe", 5.0f, 115.0f, VulkanTextOverlay::alignLeft);
|
||||
|
||||
}
|
||||
#else
|
||||
textOverlay->addText("Tessellation level: " + ss.str() + " (NUMPAD +/- to change)", 5.0f, 85.0f, VulkanTextOverlay::alignLeft);
|
||||
if (deviceFeatures.fillModeNonSolid) {
|
||||
textOverlay->addText("Press \"s\" to toggle splitscreen", 5.0f, 100.0f, VulkanTextOverlay::alignLeft);
|
||||
textOverlay->addText("Press \"w\" to toggle wireframe", 5.0f, 115.0f, VulkanTextOverlay::alignLeft);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
@ -622,4 +625,4 @@ public:
|
|||
|
||||
};
|
||||
|
||||
VULKAN_EXAMPLE_MAIN()
|
||||
VULKAN_EXAMPLE_MAIN()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue