Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Eray

Pages: [1]
1
General / Re: SFML + QML
« on: November 24, 2020, 08:36:50 pm »
Thanks again for your reply !

I still have a small question with Qt, it is possible to share data from opengl contexts.

But I need to "link" my native context to a Qt context.

For that, I need to get the "GLXContext" of my SFML texture render, is it possible ?

Sources :
https://doc.qt.io/qt-5/qopenglcontext.html#setNativeHandle
https://doc.qt.io/qt-5/qglxnativecontext.html -> class I want to instantiate
https://doc.qt.io/qt-5/qopenglcontext.html#setShareContext

I do not despair yet ^^

2
General / Re: SFML + QML
« on: November 24, 2020, 10:27:56 am »
Thank you for your help.

I use QSG quite often.
So I managed to display my RenderTexture in my SFML through an image no problem.

Now I would like to improve it by going directly from the opengl sfml texture to the QSGTexture texture.

In its Qt interface allows you to transform an opengl texture into a qt texture.
https://doc.qt.io/qt-5/qquickwindow.html#createTextureFromNativeObject

But it doesn't work as is, I just have a black texture.
After digging a little deeper, I think my textures are not shared between the sfml and Qt contexts, do you think this is a possible lead and do you have any solutions?

Thanks

3
General / SFML + QML
« on: November 22, 2020, 10:47:48 pm »
Hello,

I would like to use SFML with Qt.
More precisely I would like to create a QML component which is an instance of the SFML renderer.

Has anyone ever done this manipulation?

I tried to do something quickly with an object that inherits from QQuickItem and sf :: RenderWindow but the create doesn't work
and I'm not sure that's the right method.

My goal being to make an iOS / Android / Linux / Window game.

Thanks for your help

Pages: [1]