Translating 3-dimensional array reference onto 1-dimensional array
- by user146780
If there is an array of ar[5000] then how could I find where element [5][5][4] would be if this was a 3 dimensional array? Thanks
I'm mapping pixels:
imagine a bimap of [768 * 1024 * 4]
where would pixel [5][5][4] be?
I want to make this:
static GLubyte checkImage[checkImageHeight][checkImageWidth][4];
static GLuint texName;
bool itt;
void…