A
Akari
Guest
1) We must use as little defines as posible because it will be hard to support code futher on.
2) We must use as little platform specific functions as posible.
All SDL code hidden in the WindowSDL class. If we deside to move to something else macos won't be working at all.
ps: macos CAN work with usual main function.
About itoa. I has no idea that GCC doesn't has this funcions. I'll replace this with something else.
I was thinking about use StdString - std::string convenience wrapper. It has a lot of usefull addition to standart string.
Tell me if something doesnt compile under mac or linux,it's better redone things or two, but has understandable and logical platform independent code.
2) We must use as little platform specific functions as posible.
Why mac use SDL_main instead of main?int
#ifdef MACOSX
SDL_main
#else
main
#endif
(int argc, char *argv[])
All SDL code hidden in the WindowSDL class. If we deside to move to something else macos won't be working at all.
ps: macos CAN work with usual main function.
About itoa. I has no idea that GCC doesn't has this funcions. I'll replace this with something else.
I was thinking about use StdString - std::string convenience wrapper. It has a lot of usefull addition to standart string.
Tell me if something doesnt compile under mac or linux,it's better redone things or two, but has understandable and logical platform independent code.