feat(render): Renderer with LOD selection, 3.3 and 4.3+ upload paths, headless smoke test
This commit is contained in:
1 parent
e0cdd95a3b
commit
3555ab63d7
20 files changed
+1544
-25
No files matched your search
@@ -27,6 +27,19 @@ void LineBatch::add_polyline(const Vec2* pts, u32 n) {
|
||||
}
|
||||
}
|
||||
|
||||
void LineBatch::add_polyline_xy(const f32* xy, u32 n) {
|
||||
if (xy == nullptr || n < 2u) {
|
||||
return;
|
||||
}
|
||||
v_.reserve(v_.size() + 4u * (n - 1u));
|
||||
for (u32 i = 1; i < n; ++i) {
|
||||
v_.push_back(xy[2u * (i - 1u)]);
|
||||
v_.push_back(xy[2u * (i - 1u) + 1u]);
|
||||
v_.push_back(xy[2u * i]);
|
||||
v_.push_back(xy[2u * i + 1u]);
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------- TextBatch
|
||||
|
||||
void TextBatch::begin() noexcept { v_.clear(); }
|
||||
|
||||
Reference in new issue
Block a user