在cpp-tests里,在DrawPrimitivesTests中,在
DrawNodeTest::DrawNodeTest()
{
auto s = Director::getInstance()->getWinSize();
auto draw = DrawNode::create();
this-> addChild(draw, 10);
//加上这两句就能起到抗锯齿的作用
BlendFunc bf = { GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA };
draw->setBlendFunc(bf);
..................................
}
可是自己新建的项目,却不起作用,问题在哪里呢?