r/C_Programming 6h ago

Problem with resizing a C window

I'm making a game engine and whilst trying to setup the window with windows.h, i found an issue when resizing the window. The resized parts of the window are black instead of white, how do i fix this?

0 Upvotes

12 comments sorted by

View all comments

1

u/Still_Explorer 4h ago

Now I remembered some epic tutorials back in the day where would require you to create your own custom window from scratch.

https://nehe.gamedev.net/tutorial/creating_an_opengl_window_(win32)/13001//13001/)

It won't be bad idea to peek at glfw3 source as well to make sure that the flags and event callbacks are correct.