feat: add ui renderer

This commit is contained in:
2026-03-21 11:19:23 +08:00
parent 3916a72ca3
commit c62f2baf7c
12 changed files with 204 additions and 36 deletions

View File

@@ -27,7 +27,7 @@ void Window::update_viewport() {
glfwGetFramebufferSize(m_window, &m_width, &m_height);
m_aspect = (float)m_width / (float)m_height;
glViewport(0, 0, m_width, m_height);
m_renderer.update_proj_matrix(m_aspect);
m_renderer.update_proj_matrix(m_aspect, m_width, m_height) ;
}