Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    QGLBuffer::PixelUnpackBuffer

    General and Desktop
    1
    1
    657
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mikecarlos last edited by

      Hi,
      Is there any one having experience on Pixelunpackbuffers. There is too little info on the web about it. THe code below results in NULL for variable ptr. Any ideas why?

      regards

      @
      bool success = mPixelBuffer->create();
      mPixelBuffer->allocate(sizeof(imageData));
      mPixelBuffer->setUsagePattern(QGLBuffer::DynamicDraw);
      mPixelBuffer->bind();
      GLubyte ptr =(GLubyte)mPixelBuffer->map(QGLBuffer::ReadWrite);
      @

      1 Reply Last reply Reply Quote 0
      • First post
        Last post