Replies: 1 comment 1 reply
-
MLX42 has a fundementally different concept of rendering compared to the other miniLibX, it's one if not the only major differences in terms of the API. In this case the rendering is partially taken care for you. Instead of you doing the updating every time you change the buffer, it is updated automatically. This means you just push the image to the window once, change the buffer at any point in time, the image is updated.
Also be aware that you do not need to delete the image and create a new one every time you move, thats just cursed, just update the buffer and thats it. |
Beta Was this translation helpful? Give feedback.
-
Im working on a wolfenstein3D clone project and while looping i thought i should clear the window and redraw my frame when i move the player or rotate the field of view , is there a way to do it using this version of MLX ?
Beta Was this translation helpful? Give feedback.
All reactions