2022年12月2日

OpenGL按照窗口宽高比进行图片放大缩小

摘要: 把图像尽量拉满: void ext(int & w, int &h, int winW, int WinH) { double wRatio = winW * 1.0f / w; double hRatio = WinH * 1.0f / h; if (wRatio < hRatio) { w = 阅读全文

posted @ 2022-12-02 15:33 邗影 阅读(276) 评论(0) 推荐(0) 编辑

导航