Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QOpenGLTexture: different face different image
Forum Updated to NodeBB v4.3 + New Features

QOpenGLTexture: different face different image

Scheduled Pinned Locked Moved Solved General and Desktop
1 Posts 1 Posters 219 Views
  • 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.
  • sonichyS Offline
    sonichyS Offline
    sonichy
    wrote on last edited by sonichy
    #1

    https://github.com/kgmerk/qgl_tutorials/tree/master/qgl_tutorial06_mouse
    Texture with one image will split to all face.

    QOpenGLTexture *mTexture = new QOpenGLTexture(QImage(":/img.jpg"));
    

    How to set 6 faces of a box with 6 images ?
    alt text

    Soleved with https://doc.qt.io/qt-5/qtopengl-textures-example.html
    alt text

    https://github.com/sonichy

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved