Original Post
I know I am probably doing this totally wrong, but I wanted to see if I could make something neat. In this code below I am roughly trying to load a raw image and use the values of each bit as the hieght to a vertex.
it keeps saying that it can't convert to float from void* in the fread function. I am not sure how the the image bytes are stored but it is an 8x8 .raw picture (64 byte size). Any thought on this would be nice.
[edited by - CodeMaster000 on December 15, 2002 10:28:32 PM]
[edited by - CodeMaster000 on December 15, 2002 10:29:25 PM]
float MAP_COORD[8][8];
void Setup_Map_Height(char* MapImage)
{
FILE* file;
file= fopen(MapImage, "rb");
for (int y = 0; y < 8; y++)
{
for (int x = 0; x < 8; x++)
{
fread(MAP_COORD[x][y], 1, sizeof(char), file);
}
}
fclose(file);
}