Untitled

Published December 09, 2006
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.
Previous Entry Scrolling Demo
Next Entry Merry Christmas!
0 likes 1 comments

Comments

Mushu
Yeah, getting the size of a file is icky. I only know two ways of doing it - the first is to explicitly put the information in there yourself, the second is by using _stat. I think _stat is going to be your best bet though.

Additionally, _stat is useful basically whenever you're working with files in matters other than simple read/write operations. Like for making a virtual file system or whatever. Hur hur :3
December 10, 2006 03:16 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Goodbye, Gamedev!

1239 views

Untitled

1109 views

Merry Christmas!

1139 views

Untitled

1094 views

Scrolling Demo

1031 views

New PC

910 views

Untitled

853 views

Untitled

887 views

Progress.

915 views
Advertisement