mirror of https://github.com/bkaradzic/bgfx
30-picking: Switched to new ImGui.
This commit is contained in:
parent
793f260be1
commit
4499b51170
|
@ -367,16 +367,19 @@ class ExamplePicking : public entry::AppI
|
|||
, uint16_t(m_height)
|
||||
);
|
||||
|
||||
imguiBeginArea("Picking Render Target:", 10, 100, 300, 400);
|
||||
imguiImage(m_pickingRT, 1.0f, 1.0f, 1.0f);
|
||||
imguiSlider("FOV", m_fov, 1.0f, 60.0f, 1.0f);
|
||||
ImGui::SetNextWindowPos(ImVec2(m_width - m_width / 5.0f - 10.0f, 10.0f) );
|
||||
ImGui::Begin("Picking Render Target"
|
||||
, NULL
|
||||
, ImVec2(m_width / 5.0f, m_height / 2.0f)
|
||||
, ImGuiWindowFlags_AlwaysAutoResize
|
||||
);
|
||||
|
||||
if (imguiCheck("Spin Camera", m_cameraSpin))
|
||||
{
|
||||
m_cameraSpin = !m_cameraSpin;
|
||||
}
|
||||
ImGui::Image(m_pickingRT, ImVec2(m_width / 5.0f - 16.0f, m_width / 5.0f - 16.0f) );
|
||||
ImGui::SliderFloat("Field of view", &m_fov, 1.0f, 60.0f);
|
||||
ImGui::Checkbox("Spin Camera", &m_cameraSpin);
|
||||
|
||||
ImGui::End();
|
||||
|
||||
imguiEndArea();
|
||||
imguiEndFrame();
|
||||
|
||||
// Advance to next frame. Rendering thread will be kicked to
|
||||
|
|
Loading…
Reference in New Issue