I promice everone that I have looked and looked and looked for a solution, I'm not just having a problem and being lazy putting it on daniweb... haha :) ull have to trust me, ive even googled it :O!
Ok, so I am wondering, if I wanted to return a single (non aray) pointer to an array (yes, I know, pointers arn't arrays, I mean, doesn't return the start of the array) which is un modifiable, will this work:
GLdouble rotMatrix[2][2];
const GLdouble * getRotMatrix(int row, int column){return(&rotMatrix[row][column]);};
I know I can just test it... But I'm worried that I will mis-understand somthing going on and leave an error in there :\ If that isn't correct, how could I return a pointer to a single GLdouble (think of it as a double) so that a user my use the returned value to multiply another matrix and NOT be able to modify the returned value