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

Feature request: another set of add_xxx functions #50

Open
enduguXL opened this issue Nov 21, 2016 · 1 comment
Open

Feature request: another set of add_xxx functions #50

enduguXL opened this issue Nov 21, 2016 · 1 comment

Comments

@enduguXL
Copy link

Is it possible to have another set of add_xxx functions like:

bool add_ring (const void* vertices, int stride, int num_vertices, polygon_type p_type);

The main purpose of this is perf gain due to lack of data conversion.
I think people that write real time applications (ex.: game developers) will be grateful for this.

@flippmoke
Copy link
Member

@enduguXL It would definitely be useful for people with other geometry concepts if they could use a more generalized geometry construct rather then specifically just https://github.com/mapbox/geometry.hpp/

I would not use a generic method such as you suggested, however, I would do something with templates similar to how boost geometry does their geometry constructs. I do not envision that have the time currently to do this anytime soon.

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

No branches or pull requests

2 participants