mapbox / mapbox/wagyu

Feature request: another set of add_xxx functions

Open
#50 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
197
Forks
37
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Start by locating the existing add_xxx entry points and the data-conversion path, then determine how a strided vertex buffer and polygon_type would fit the public API. Done means the requested overloads accept the stated inputs without conversion and preserve the existing geometry-operation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.