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. Using GLES2 in QT?

Using GLES2 in QT?

Scheduled Pinned Locked Moved Unsolved General and Desktop
gles2qopenglwidgetgl context
1 Posts 1 Posters 466 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.
  • BDC_PatrickB Offline
    BDC_PatrickB Offline
    BDC_Patrick
    wrote on last edited by BDC_Patrick
    #1

    hi there.. again..

    I'm on the way to create my first 2D Engine and according to this, I create a 2D Editor with QT.
    Everything runs well right now.. but I've come to a Problem I can't find a solution for.

    I create my Engine based on the angleproject, more exactly: GLES2.
    I managed to draw sprites in my SDL2 Window of the Runtime.
    Now.. in the QT Editor, I want to preview those sprites, too.

    Soo.. I included parts of the runtime Headers and sources, so I don't need to rewrite or Copy&Paste stuff. Means.. Generating quads, add shader, add texture.. is inside a function of my runtime.

    Sow.. I want to use this same function in QT, but can't figure out, how?

    I know, there is the QOpenGLWidget..
    My question now is:
    how to use this Widget as renderer for the code of the Runtime?

    I tried to search myself through YouTube, Stack Overflow and some.. really old Topics here.. But nearly all of them use deprecated code (just saying.. glbegin.. glend..).

    What I need:
    Is there a more modern or really time present Tutorial of how to use extern GL context inside QT Widgets?

    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