Re: Help Solving SDL2 Wrapper Example

new topic     » goto parent     » topic index » view thread      » older message » newer message

That's a pretty basic error...

public function SDL_LoadBMP(sequence fname) 
 
-- atom str = allocate_string(fname,1) 
-- return SDL_LoadBMP_RW(SDL_RWFromFile(str,"rb"),1) 
 return SDL_LoadBMP_RW(SDL_RWFromFile(fname,"rb"),1) 
     
end function 

works fine here (on Phix) anyway.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu