![]() |
Using subset of SDL2 subsystems | ![]() |
![]() |
![]() |
knd
![]() |
![]() |
Why would you do that ? :)
You will link your app against libsdl2.so ( dll ) anyways, and you'll not see any great impact on performance or your binary size if you will write a bunch of includes of discrete subsystems. If you have your own media subsystems - it's good! Use them, don't mess with SDL2 internals and they won't mess with you :) For SDL2 OpenGL context use explicit OpenGL initialization as it's stated in wiki. To init only the video subsystem one can call:
the same goes for audio, joysticks and etc. |
||||||||||||
|