api between different versions #1442
Replies: 4 comments
-
#define VSG_VERSION_MAJOR 1
|
Beta Was this translation helpful? Give feedback.
-
What version were you using before? Looking at this history of vsg::Camera I depreacated then removed these methods in June 2021 with commit: The VulkanSceneGraph-1.0 released was made in November 2022, quite a long while after these very early methods were removed. The API was heavily in flux before 1.0 as we figured out how best to encapsulate Vulkan with a scene graph API, so it didn't make sense to try and maintain backwards compatibitiy and clog up the API with old APIs that aren't in keeping with how the VSG eventually evolved. The VSG is still in development, occassionally I still need to change the API, and the Version.h macros may need to be used if you trip out with one of these API changes. The 1.1.x developer releases are more prone to API changes than the stable 1.0.x release series with the efforts to maintain API for the stable release series. If you have code that needs to work across different VSG versions then use the macros in Version.h to create optional code paths. However, if the code relies on API prior to the VSG release please just update the code, there is no support for any point releases prior to 1.0. |
Beta Was this translation helpful? Give feedback.
-
Thank you!
Sample projects are as follows: |
Beta Was this translation helpful? Give feedback.
-
I have only dabbled with Qt, so I will have to defer to members of the VSG community with Qt expertise to help suggest ways of getting Qt Vulkan functionality work in the way you want it. It may help others if you are able to post a work in progress with your code as open source like the QuickVSG code. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
m_vsg_camera->setViewportState(vsg::ViewportState::create(extent));
m_vsg_camera->getProjectionMatrix()->changeExtent(m_vsg_extent, extent);
These two lines of code do not compile in the latest version, how can I change them?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions