Re: SDL2 Init Problem

new topic     » goto parent     » topic index » view thread      » older message » newer message
Lone_EverGreen_Ranger said...
public constant xSDL_Init = define_c_func(sdl,"SDL_Init",{C_UINT},C_INT) 
				 
public function SDL_Init(atom flags) 
	 
	return c_func(xSDL_Init,{flags}) 
	 
end function 
 
if xSDL_Init = -1 then 
	puts(1,"Could not load SDL_Init") 
end if 

Please have a look at my extended dynamic linking routines. I really think it will help your efforts here. Especially all those "if xFunction = -1" lines.

-Greg

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

Search



Quick Links

User menu

Not signed in.

Misc Menu