Open Gizmo199 opened 1 year ago
Not sure how broadly applicable this one is, it's not something I needed to use personally, at least. 3D is a pretty niche area to begin with, but I can also accept that some 3D-adjacent functionalities may work pretty well in 2D games too, and vertex buffers are one of these.
If enough people upvote this one, I don't mind getting this added, especially with the functionality being pretty straightforward and hardly any similar/better alternatives being available.
I was considering names like vertex_buffer_save
and vertex_buffer_load
instead, but I see that built-in functions have ordering like vertex_create_buffer(...)
, so I don't mind either way.
No worries. Yeah I just named it similar to how its named in the IDE. :) I just know I use these a lot so I figured I would share. :)
Only downside I can see with this is that they're not truly crossplatform compliant. (Console/HTML5) You'll need to provide asynchronous counterparts in, and without getting into the complex bits, requires holding onto a buffer of some kind for both loading and saving.
Very useful when working with 3D. Especially if you are importing
.obj
files and want to cache them for quicker load times after the initial import.