Original Post
Hey everyone,
I''m having a little trouble that I''m hoping some of you may be able to help me with...
I''m trying to setup vertex arrays in opengl, but I seem to be getting snagged on allocating memory using calloc()
I have a pointer: GLfloat *tilevertices
and I am calling
tiletextures = (GLfloat*)calloc(MapWidth * MapHeight * 8, sizeof(GLfloat));
this is returning 0x0000000 (NULL)
Any idea what is wrong??
I just wrote a simple program to test this out, and it worked fine... in fact, if I hardcode a smaller map size in there, ie 10, it works. Currently with the map I am loading this works out to be 14400. I tried smaller numbers like 255 and that still didn''t work...
Thanks for your assistance
Michael Rhodes
Tiger Studios Entertainment
http://www.tigerstudios.net