SDL Integration

Hello There,

can someone give me a hint where to start on integrating panda3d with sdl2 to handle events and windows?

Kind regards

I believe you would need to create an sdldisplay similar to x11display (panda3d/panda/src/x11display) et al.

Is there a particular feature you are looking for from SDL? I thought about adding SDL support in the past, but there did not seem to be much interest. Panda already has fairly solid support for multiple platforms without requiring SDL as a dependency.

EDIT: You will also need to add SDL as a dependency in Panda’s build system: makepanda. The file you are looking for here is makepanda/makepanda.py. Use one of the other libs as an example.