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