I have a little problem.
When I try to multiply modelview matrix it
rotate an object.But it also exit program.
The source of funcion is here:
void MakeR()
{
I believe (although don’t assume I’m right) that having a matrix type as float[4][4] does not guarantee that the memory is contiguous. Essentially your matrix may be an array of four float pointers, pointing to different parts of memory. Much better to have
typedef matrix_t float[16], and use some other method for easily indexing the array members.
The C-specifications says that an array of an arrays must be of contignuous memory. Have not read the specs myself, but have seen quite a few people say this.