I want to fill a texture with the values in a matrix.
using the following command:
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, WIDTH,
HEIGHT, 0, GL_RGBA, GL_FLOAT, myMatrix);
Should I create the matrix like myMatrix[height][width][channel]
, or myMatrix[width][height][channel]?