Untitled
1,578
1
Advertisement
This week has been quite fun. I worked from 00:30 PM to 04:30PM each day. It involved playing basketball, football and dodgeball with kids at school.
I've been trying to make a map loader which reads bytes from a file and uses that info for rendering the map(Using OpenGL). I thought reading each byte through fgetc() and then using those values directly would do the trick. But it didn't, partly because something is wrong with my code, so that I cannot get the size of the file I wish to read from, and therefore I cannot read the whole map file. I also have a rendering bug, which I am, from lack of any other screenshot, going to post here.
I'll probably end up rewriting the whole thing.
I've been trying to make a map loader which reads bytes from a file and uses that info for rendering the map(Using OpenGL). I thought reading each byte through fgetc() and then using those values directly would do the trick. But it didn't, partly because something is wrong with my code, so that I cannot get the size of the file I wish to read from, and therefore I cannot read the whole map file. I also have a rendering bug, which I am, from lack of any other screenshot, going to post here.
I'll probably end up rewriting the whole thing.
Advertisement
Advertisement
Advertisement
Discussion