opengl - Custom real-time drawing in Qt5 and Qt Quick 2 -
i have been looking far , wide find out how, if it’s possible, can fill particular area in qml screen opengl context , custom opengl in context. i’ve seen plenty of demos qml components buttons, etc lay on top or below screen-wide opengl context (as typically required games), i’d able situate several distinct opengl contexts within qml , have qml file define how large are, positioned, etc.
now, since qt 5 opengl under hood, makes me wonder if using canvas element custom drawing via javascript result in similar rendering performance custom opengl? meaningful alternative it’s not clear me how javascript drawing handled via runtime compared custom opengl drawing.
what want draw? qquickpainteditem
may simplest way go it. when you're using qopenglframebufferobject
target, painter use opengl paint texture. might easier writing own opengl code if you're doing 2d.
Comments
Post a Comment