Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否可以将裸机 C++ Window 类型从 wxWidgets 端口获取到 Haskell。我已经查看了图书馆的文档,到目前为止还没有成功。
我打算用它做的是将它传递给 C 函数(然后与 C++ 代码接口)以使用 OGRE3D 渲染一些 3D 图形。我知道在 Haskell 中已经准备好了一个 OGRE 的小绑定,但是所有的教程都是用 C++ 编写的,我是 OGRE 的新手。当我还在学习图书馆时,我不想将教程翻译成 Haskell。
如果这是不可能的,你会推荐什么其他的行动方案?
我知道有点晚了,但试试:
WIN_TYPE uiWindow = nil; Ogre::RenderWindow *ogreWindow = Ogre::Root::getSingleton().getAutoCreatedWindow(); ogreWindow->getCustomAttribute("WINDOW", &uiWindow);
您唯一需要更改的是将 WIN_TYPE 更改为 wxWidgets 使用的任何内容。