Looking for a parallel function for ActionScript BitmapData.draw (), but in OpenGL

I have a flash application that I have been working on for 11 months and would like to translate it into another language / platform, preferably Python and OpenGL.

One of the main functions of my program is to draw flash vector graphics (or display objects), and then redraw them in a raster texture. Is there a way to do this in OpenGL? Basically, to draw some polygons on the screen, and then draw these polygons on the texture. If the texture is displayed directly below the polygons, and the polygons are in motion, then there is a drag / draw / draw effect.

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/BitmapData.html#draw () → here is the flash function that I use.

Hopefully someone who knows in OpenGL and Actionscript will be able to answer this question or provide me with some details. Thankyou!

+3
source share
1 answer

OpenGL does not provide any options for drawing your regular 2D vector graphics. This is a very general API, but mostly suitable for 3D solutions. Implementing Flash rendering capabilities in OpenGL is possible, but a lot of work for yourself.

( , , , , -), , OpenGL .

OpenVG, , . , . , .

+2

Source: https://habr.com/ru/post/1776117/


All Articles