?? ogresharedptrwrapper.h
字號:
#ifndef PYOGRE_SHAREDPTRWRAPPER_H_INCLUDED
# define PYOGRE_SHAREDPTRWRAPPER_H_INCLUDED
# include <OgreSharedPtr.h>
namespace boost { namespace python {
// Used by boost::python to extract the pointed type
template <class T>
struct pointee< Ogre::SharedPtr<T> >
{
typedef T type;
};
// Used by boost::python to get the actual pointer
template <class T>
T *get_pointer( const Ogre::SharedPtr<T> &p )
{
if ( p.isNull() )
return 0;
return p.get();
}
} }
template<typename T>
void registerOgreSharedPtr()
{
boost::python::register_ptr_to_python< Ogre::SharedPtr<T> >();
}
#endif // PYOGRE_SHAREDPTRWRAPPER_H_INCLUDED
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -