Primitives and sprites Z index in Cocos2D-x 3.0 is not consistent?

前端 未结 2 1118
野性不改
野性不改 2021-01-16 09:03

I have two layers. Each layer has a primitive drawing in it with OpenGL like this:

void Layer1::drawPolygon()
{
    glLineWidth(1);
    DrawPrimitives::setDr         


        
2条回答
  •  死守一世寂寞
    2021-01-16 09:57

    Due to the new multithreader renderer on cocos2d-x 3.0, drawing with primitives requires a different approach. Take a look at my reply at this thread:

    https://stackoverflow.com/a/22724319/1468700

提交回复
热议问题