开发者

Using Adobe Alchemy to get the OpenGL image from c++ code to flash app

开发者 https://www.devze.com 2023-03-09 20:01 出处:网络
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开发者_开发问

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


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 :)


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".

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号