用opencv打开电脑摄像头,
Texture2D::PixelFormat _renderFormat= Texture2D::PixelFormat::RGB888;
Texture2D * m_texture = new Texture2D;
m_texture->initWithData(
frame.data,
camera_width * camera_height*3,
_renderFormat,
camera_width,
camera_height,
cocos2d::Size(camera_width, camera_height) );
m_sprite->setTexture(m_texture);
显示出来的图片没有红色是什么原因

