I have interated CEF in my app (mac) but am facin issue in transparency in sprite.
void AnimatingScene::OnPaint(CefRefPtr<CefBrowser> browser, PaintElementType type, const RectList &dirtyRects, const void *buffer, int width, int height)
{
unsigned char* dat = ipic->GetData();
memcpy(dat, buffer, width*height*4);
// for (int i=0; i<width*height; i++) {
// dat[4*i] = 0xff;
// dat[4*i + 1] = 0;
// dat[4*i + 2] = 0xff;
// dat[4*i + 3] = 100;
// }
le->SetData(ipic);
}
ipic = new Image(context_);
le = new Texture2D(context_);
since data is type char type, i tried set alpha 100, but the whole pixel is transparent not see throu…
any help!