Best Practice of cross-platform games
__super keyword¶
this keyworld is offered only by Microsoft VC. So you had to call the very name of parent class, instead of __super.
folder separator¶
"\"is the separator of windows. For cross-platform games, you must use "/" in all sources.
standard C library & STL¶
Use standard C library & STL instead of the particular APIs of each platform.
Note that some functions seem like the members of standard C library, but actually they aren't. Such as:
itoa, _isnan
本文探讨了使用标准C库和STL替代特定平台API的方法,介绍了文件分隔符的使用,以及如何在不同操作系统间保持一致性和兼容性,旨在提供跨平台游戏开发的实用指南。
2694

被折叠的 条评论
为什么被折叠?



