With OpenGL, there are many times when data steps are required to increase efficiency. for example, the memory structure will be vertex-color-normal-vertex-color-normal, etc.
Is there a viable option for changing, say, only the color section of the memory with some kind of memset option (that is, without using a loop).
The question also arises, is there such a thing as a loop memset? For example, in an array of colors consisting of four floats, set all of them to a specific color.
source share