使用 Adobe Alchemy 从 c++ 获取 OpenGL 图像闪存应用程序代码
我有使用 OpenGL 的 C++ 应用程序。需要将此应用程序转换为 Flash 应用程序。使用 Adobe Alchemy 可以做到这一点吗?是否可以从该 swc 获取当前图像(例如,使用 glDrawPixels)并将其打印在屏幕上
I have C++ application that use OpenGL. Need to convert this app to flash app. Is it possible to do this with Adobe Alchemy? Is it will be possible to get from that swc current image (for example, with glDrawPixels) and print it on screen
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这里已经有一个类似的线程,似乎Mesa3D 可能是一个很好的起点,但这需要大量工作:)
There's a similar thread here on SO already, seems that Mesa3D could be a good starting point, but it's going to be a lot of work :)
简短的回答是否定的。你不能仅仅链接到一些已经编译的 OpenGL 库——你必须从源代码编译它。它很可能无法编译,因为它会调用特定于操作系统的硬件加速。
长的答案是,您可以重构 OpenGL 库,以便它使用 Flash 的硬件加速 API 进行渲染。实际上会很酷。但是,正如戴恩所说,“这将是一项艰巨的工作”。
The short answer is no. You can't just link to some already-compiled OpenGL lib-- you'd have to compile it from source. Most likely it wouldn't compile as it would have calls into OS-specific hardware acceleration.
The long answer is that you could possibly refactor an OpenGL library so that it renders using Flash's hardware-acceleration APIs. Would be pretty cool, actually. But, as dain said, "it's going to be a lot of work".