Skip to main content
Updated dead link, fixed typos, added markdown to code like stuff
Source Link
Pikalek
  • 13.4k
  • 5
  • 49
  • 54

I've been using SDL2 for development almost since it came out. Long story short, I stumbled upon the SDL dynamic apiAPI explanation. I've looked in SDL_Dynapi.cSDL_Dynapi.c to understand how it works. I get that the jump table can be updated with function pointers to newer versions of the functions, but what I don't get is how one would actually goes about doing that dynamically.

Did iI miss a function declaration, is there some specific function to call outside the application,? I have no idea how an updated dynapidynapi loads itself.

I've been using SDL2 for development almost since it came out. Long story short, I stumbled upon the SDL dynamic api explanation. I've looked in SDL_Dynapi.c to understand how it works. I get that the jump table can be updated with function pointers to newer versions of the functions, but what I don't get is how one would actually goes about doing that dynamically.

Did i miss a function declaration, is there some specific function to call outside the application, I have no idea how an updated dynapi loads itself.

I've been using SDL2 for development almost since it came out. Long story short, I stumbled upon the SDL dynamic API explanation. I've looked in SDL_Dynapi.c to understand how it works. I get that the jump table can be updated with function pointers to newer versions of the functions, but what I don't get is how one would actually goes about doing that dynamically.

Did I miss a function declaration, is there some specific function to call outside the application? I have no idea how an updated dynapi loads itself.

I've been using SDL2 for development almost since it came out. Long story short, I stumbled upon the SDL dynamic apiSDL dynamic api explanation. I've looked in SDL_Dynapi.c to understand how it works. I get that the jump table can be updated with function pointers to newer versions of the functions, but what I don't get is how one would actually goes about doing that dynamically.

Did i miss a function declaration, is there some specific function to call outside the application, I have no idea how an updated dynapi loads itself.

I've been using SDL2 for development almost since it came out. Long story short, I stumbled upon the SDL dynamic api explanation. I've looked in SDL_Dynapi.c to understand how it works. I get that the jump table can be updated with function pointers to newer versions of the functions, but what I don't get is how one would actually goes about doing that dynamically.

Did i miss a function declaration, is there some specific function to call outside the application, I have no idea how an updated dynapi loads itself.

I've been using SDL2 for development almost since it came out. Long story short, I stumbled upon the SDL dynamic api explanation. I've looked in SDL_Dynapi.c to understand how it works. I get that the jump table can be updated with function pointers to newer versions of the functions, but what I don't get is how one would actually goes about doing that dynamically.

Did i miss a function declaration, is there some specific function to call outside the application, I have no idea how an updated dynapi loads itself.

Tweeted twitter.com/#!/StackGameDev/status/524422128503119873
Source Link

How does the SDL dynamic API inject itself in statically linked code

I've been using SDL2 for development almost since it came out. Long story short, I stumbled upon the SDL dynamic api explanation. I've looked in SDL_Dynapi.c to understand how it works. I get that the jump table can be updated with function pointers to newer versions of the functions, but what I don't get is how one would actually goes about doing that dynamically.

Did i miss a function declaration, is there some specific function to call outside the application, I have no idea how an updated dynapi loads itself.