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

More SWIG style declarations so less work for each target language #20

Open
2 tasks
Rinkaa opened this issue Oct 28, 2021 · 1 comment
Open
2 tasks
Assignees
Labels
enhancement New feature or request

Comments

@Rinkaa
Copy link
Member

Rinkaa commented Oct 28, 2021

Objectives:

  • Use %typemap to glue up the return value array pointer with the out argument array length;
  • Use %extend to generate constructor functions for common structs, so we can prepare values during struct instance construction call in most script languages, eg. vec = raylib.Vector2(100,100)
@Rinkaa Rinkaa self-assigned this Oct 28, 2021
@Rinkaa Rinkaa added the enhancement New feature or request label Feb 12, 2022
@Rinkaa
Copy link
Member Author

Rinkaa commented Apr 19, 2022

New objective added:

  • Use %typemap to alter functions that passes struct values in params: Convert those params to basic type params(int, float, char* etc.) or script type params(luatable etc.) for better exposure to the script language, by avoiding rapid copying from the script owned object structs to the param structs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant