Description
In other platform-specific API we are moving away from casts between void* etc. from platform handles, and we could aim for the same approach in createTextureForNativeObject (and maybe other places).
It could look something like this:
class QSGOpenGLTexture { public: static QSGTexture *createTexture(QQuickWindow *window, GLuint id, const QSize &size); };
And similar factory functions for other backends. That way we get rid of the quint64 cast in QQuickWindow and make the function type-safe, plus it will be more consistent with QPA APIs in Qt 6.
Attachments
For Gerrit Dashboard: QTBUG-85239 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
306134,11 | Add type safe native texture accessors | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |