티스토리 뷰

가끔 테스트 프로그램 만들 때 마다 맨날까먹는데,

https://www.glfw.org/docs/3.3/group__window.html#ga37bd57223967b4211d60ca1a0bf3c832

void glfwPollEvents    (void)

This function processes only those events that are already in the event queue and then returns immediately. Processing events will cause the window and input callbacks associated with those events to be called.

On some platforms, a window move, resize or menu operation will cause event processing to block. This is due to how event processing is designed on those platforms. You can use the window refresh callback to redraw the contents of your window when necessary during such operations.

https://www.glfw.org/docs/3.3/window_guide.html#window_refresh

glfw 샘플 중에는 splitview 샘플이 resize 도중에도 화면이 갱신된다

저기서, glfwSetWindowRefreshCallback 는 실제로, 아래 구문에서 호출된다

        case WM_PAINT:
        {
            _glfwInputWindowDamage(window);
            break;
        }

// https://stackoverflow.com/a/32806642/1890382
WNDCLASS에 flag 를 설정하여 paint 조건을 변경
CS_HREDRAW | CS_VREDRAW | CS_OWNDC

https://stackoverflow.com/questions/45880238/how-to-draw-while-resizing-glfw-window

위의 답글 중, resize callback 에서 render 하란 것과 거의 비슷할 듯

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크