test floating some panels

This commit is contained in:
2019-03-24 01:43:13 +01:00
parent 929e80a218
commit a50654d8b7
7 changed files with 57 additions and 5 deletions

View File

@@ -594,6 +594,8 @@ void App::update(float dt)
}
//auto box = n->m_clip;
//glm::ivec4 c = glm::vec4((int)box.x - 1, (int)(height / zoom - box.y - box.w) - 1, (int)box.z + 2, (int)box.w + 2) * zoom;
if (box.z <= 0.f || box.w <= 0.f)
return false;
glm::ivec4 c = glm::vec4((int)box.x, (int)(height / zoom - box.y - box.w), (int)box.z, (int)box.w) * zoom;
glScissor(c.x + off_x, c.y + off_y, c.z, c.w);
n->draw();