Re: [AD] Allegro JavaScript port using Emscripten (First version complete)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 06/16/2014 02:37 PM, Max Savenkov wrote:
Could Primitives addon use the same VBO we use for bitmaps rendering? We
could stuff all primitives into it and draw them all in the same call as
bitmaps, which would get rid of both allocations and multiple calls to
drawBuffers. I'm not an OpenGL expert, but this should work, shouldn't it?

This cannot be done in the general case, as the primitives don't have textures in them. At the very least, you'd have to flush the buffer every time you switch from bitmaps to primitives and vice-versa. Either way, I'd prefer for this to be done without touching the core.

-SL





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/