Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在从 GLUT 切换到 GLFW,发现当我重新调整 GLFW 窗口的大小时,渲染区域不会改变。(IE,正在渲染的内容与旧窗口大小保持在同一位置,并且新窗口区域填充有清晰的颜色。)我是否需要采取更多步骤来重新调整上下文大小或类似的东西就这样?
您需要重新调整视口的大小以匹配窗口的大小。
采用glViewport();
glViewport();