Found algorithms which pack rectangles, but at the same time overturn them.
Is it possible to opengl in textures with the glTexSubImage2D command, or can I inject another into the texture without overturning the textures?
If not, then how exactly is the task called, where the rectangles should not roll over (in English) (ideally, I would like to have ready C / C ++ code)?