void WebRender::updateWebcore(){ Sleep(50); awe_webcore_update(); rPixelBuffer = awe_renderbuffer_get_buffer(renderBuffer); pixelBuffer = const_cast<unsigned char *> (rPixelBuffer); convertBGRAToRGB(pixelBuffer,rightPixelBuffer,WEB_WIDTH, WEB_HEIGHT); texColor.loadData(rightPixelBuffer, WEB_WIDTH, WEB_HEIGHT, GL_RGB); }
const unsigned char* Awesomium::getBufferFromRenderbuffer() { return awe_renderbuffer_get_buffer(rBuffer); }