cocos2dx 3.3 如何设置每个顶点的颜色?

就像opengl中一样

glBegin(GL_TRIANGLES);                                // Drawing Using Triangles
            glColor3b(255, 0, 0);
            glVertex3f(0.0f, 1.0f, 0.0f);                    // Top
            glVertex3f(-1.0f, -1.0f, 0.0f);                    // Bottom Left
            glVertex3f(1.0f, -1.0f, 0.0f);                    // Bottom Right
            glEnd();        

在cocos2dx中如何实现?

CHECK_GL_ERROR_DEBUG();
Vec2 points] = {Vec2(60,160),Vec2(70,170),Vec2(60,170),Vec2(70,160)};
DrawPrimitives::setPointSize(4);
DrawPrimitives::setDrawColor4B(0, 255, 255, 255);
DrawPrimitives::drawPoints(points, 4);//参数依次为圆心Vec2和点的个数

这段是TestCpp里面画多个点的代码…setDrawColor4B就是设置颜色的