Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding version info to GDNative ARVR interfaces #19171

Conversation

BastiaanOlij
Copy link
Contributor

@BastiaanOlij BastiaanOlij commented May 26, 2018

I've been holding off adding new calls to the ARVR interface because we had no sure way to test if the plugin had support for any new calls. Because we hadn't added this for the 3.0 release it would always mean a breaking change.

I've added a type field and a version field at the top of the structure. The type field just makes it easier to detect when we have a pointer to an interface written for Godot 3.0 as the pointer of the constructor is unlikely to ever spell ARVR, the version will allow us to detect whether new features are supported by the plugin.

For testing and seeing what changes are required I have updated the ARVRSimple reference implementation to perform all the required version checks:
BastiaanOlij/ARVRSimple#4

@BastiaanOlij BastiaanOlij force-pushed the add_arvr_interface_gdnative_version branch from ce9b7d2 to ea9eb5e Compare May 26, 2018 00:22
@BastiaanOlij BastiaanOlij added this to the 3.1 milestone May 26, 2018
@BastiaanOlij BastiaanOlij force-pushed the add_arvr_interface_gdnative_version branch from ea9eb5e to 70bb158 Compare May 26, 2018 00:38
@BastiaanOlij BastiaanOlij changed the title [WIP] Adding version info to GDNative ARVR interfaces Adding version info to GDNative ARVR interfaces May 26, 2018
@BastiaanOlij BastiaanOlij force-pushed the add_arvr_interface_gdnative_version branch from 70bb158 to 8901b3c Compare May 27, 2018 10:32
@BastiaanOlij BastiaanOlij merged commit 3d9dffd into godotengine:master May 30, 2018
@akien-mga
Copy link
Member

Would have been good to edit the commit log, merging a commit with [WIP] in its log seems weird ;)

@BastiaanOlij
Copy link
Contributor Author

ARGH! sorry @akien-mga , completely missed that I hadn't changed that..

@BastiaanOlij BastiaanOlij deleted the add_arvr_interface_gdnative_version branch June 8, 2018 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants