Skip to content

Commit

Permalink
Make RenderBuffer mappable
Browse files Browse the repository at this point in the history
Adds map() and unmap() functions to RenderBuffer, and changes Mesh::draw() to map and update the vertex buffer instead of making a new one.

Also refactors RenderBuffer to just be a blob of data as opposed to an array of elements of fixed size and type. Removes the type-specific factory methods for creating RenderBuffers in favor of a single one that just takes a buffer type and buffer size.

Diffs=
06a187288 Make RenderBuffer mappable (#5907)
  • Loading branch information
csmartdalton committed Aug 31, 2023
1 parent 5a2b702 commit fafc1c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
654d4488e936ac8c63930253b83229ef1c82618b
06a1872884b3b7cf2be58673e5f5246c57c3d39c
2 changes: 1 addition & 1 deletion submodules/rive-cpp

0 comments on commit fafc1c1

Please sign in to comment.