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.
我对 Java 和 C++ 之间的包装不是很熟悉。但是我需要将 Java 窗口输入包装到 c++ 并获取我分配给 ogre 的窗口上下文。我知道这是可能的,因为 Ogre4J 使用了类似的东西。
“使用 Ogre4j”不是答案。
我从未尝试过,因为 JOGL 更易于使用,但在这里,您有一个示例如何直接在 Java 中使用 opengl。这应该与 OGRE 类似。我猜。 或者您可以查看 Ogre4j 并了解它们如何从 Java 窗口获取本机上下文。