|
看OSG源码的时候,函数分的很细,当然了,一个集成的库都是这样的,粒度很细。但是奇怪的是很多关键函数貌似都没有定义主体,-
- /** Method for adapting keyboard press events. Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings.*/
- void keyRelease(int key) { keyRelease(key, getTime()); }
- /** Method for adapting keyboard press events. Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings, with specified time.*/
- void keyRelease(int key, double time);
复制代码 比如:上面的两个重载函数,后面这个是没有定义的,
很多库文件都是这样子的,不知为了什么? 难道是留给用户的接口...? |
|