![]() |
What's the role of the 3 different library files of SDL 2.0? | ![]() |
![]() |
Re: What's the role of the 3 different library files of SDL | ![]() |
neoaggelos
![]() |
![]() |
SDL2main and SDL2test are two auxillary libraries for SDL2.
SDL2main provides SDL_main(), which is a global entry point for all SDL apps. You are not required/forced to use it, but is presence is based on the variety of the systems SDL supports. Windows uses WinMain(), Linux uses main(), Android needs JNI and some Java to actually use SDL, so SDL_main() makes things a little easier. SDL2test on the other hand, provides some functions not directly related to the purpose of SDL. Some are useful for ordinary programs, others are directly related to the test programs, it's your choice to use them or ignore them. Neither SDL2main nor SDL2test are required if you want to use SDL2, they are just some good choices.
|
||||||||||||
|
![]() |
What's the role of the 3 different library files of SDL 2.0? | ![]() |
Andreas Schiffler
Guest
![]() |
![]() |
FYI - the SDL2_test lib is a static library and has two main components:
1) common stuff used by all test executables (CommonState, CommonArgs, CommonEvent, etc.) 2) harness and helper function (logger, asserts, data fuzzer, etc.) for test automation suites On 7/22/2013 12:07 PM, neoaggelos wrote:
|
||||||||||||||
|
![]() |
![]() |
Bitious
![]() |
![]() |
Aha, that clears up a lot of things for me then
![]() |
||||||||||
|