Skip to content

Conversation

@BastiaanOlij
Copy link
Collaborator

@BastiaanOlij BastiaanOlij commented Sep 1, 2021

This PR re-introduced the native source code for build in types such as Vector3 and Rect3 so we regain the ability of having full member access to these low level classes.

Depends on godotengine/godot#52309

@BastiaanOlij
Copy link
Collaborator Author

Only thing left to do is fixing issues around missing index operators on the arrays

]

def is_included_type(type_name):
"""
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could use a better name for this method :)

#endif

#ifdef REAL_T_IS_DOUBLE
typedef double real_t;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unavoidable to re-introduce this. @reduz said something about when methods are called over the GD extension bridge doubles are always used even if members are defined as a float (where we do have a bug I think because it failed for me), in this case however we're re-implementing everything on our side so we need the right typing to be binary compatible.

@BastiaanOlij BastiaanOlij force-pushed the reintroduce_buildin_type_code branch 2 times, most recently from a0e4ee8 to 84ae645 Compare September 4, 2021 13:16
@BastiaanOlij
Copy link
Collaborator Author

We need a String constructor that takes a int64_t, disabled some string formatting code that relies on it for now, everything else is there, just needs testing.

@BastiaanOlij BastiaanOlij force-pushed the reintroduce_buildin_type_code branch from 84ae645 to a388155 Compare September 5, 2021 01:22
@BastiaanOlij BastiaanOlij force-pushed the reintroduce_buildin_type_code branch from a388155 to c9dca8b Compare September 5, 2021 01:25
@vnen vnen merged commit c2cbdf2 into vnen:gdnative-extensions Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants