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?
Forum Updated to NodeBB v4.3 + New Features

Using GLES2 in QT?

Scheduled Pinned Locked Moved Unsolved General and Desktop
gles2qopenglwidgetgl context
1 Posts 1 Posters 493 Views 1 Watching
  • 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.
  • B Offline
    B Offline
    BDC_Patrick
    wrote on 18 Oct 2021, 18:42 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

    1/1

    18 Oct 2021, 18:42

    • Login

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