From: Philip K. <pk...@bu...> - 2002-06-23 20:12:52
|
Brian Campbell wrote: > If the list archive is going to be good for anything, we need to > remember to send mail to the list. > > Anyhow, I tried adding code to load an image and draw it. First of > all, SDL is even skeezier than we thought. Not only does it swap the > main function out from under you, but it also violates the standard > that macros are all upper case. The documentation tells me to use > SDL_LoadBMP to load an image. So I try to do so, but my C-FFI tells me > that that function doesn't exist. I look in the headers, and find that > it's a macro, which expands to SDL_LoadBMP_RW(SDL_RWFromFile(path, > "rb"), 1). Argh! It does this for several other functions, too. > Have you taken a look at SDL_Image? That is the library that I use. I don't know what it does. It might do some more scuzzy marco hoops. I hope there are hoops... I'll do a little work tonight. I'm going to head to work this week, so I don't know how much sakala hacking there will be. I fixed the turn one way, push another way bug. It turns out ut was swaped in two places, in the functions turn-left and turn right, and in the sprite animation. D'oh. > Well, once I added this code, it started crashing (I think I must be > mistaken about how some things like pointers work in the C-FFI). So I > commented out all of the code that I added, and it still crashes. It's > really weird. The code that was working before isn't working now. I'm > wondering if there's some global state in the window manager or > something that's gotten confused. I'll try restarting to see if that's > it. > You should find out if anyone is hacking out a UFFI interface for openMCL. -Phil |