QSGTexture texture;
QSGNode * updatePaintNode(QSGNode * oldNode, UpdatePaintNodeData *)
{
QSGNode* node;
if(!oldNode)
{
node = new QSGSimpleTextureNode();
}
node->setTexture(&texture);
return node;
}
How can I construct a QSGTexture object to show an image?
(there’s an image buffer pointer which points to pixels data of an image: imgBuffer)
should I need to call EGL library function?
↧