On Wednesday, 1 June 2016 at 18:14:33 UTC, Begah wrote:
I started using reference counters for my assets in my
application :
- Images
- Models
-
For my resource manager I started out with something similar to
what you're describing, but I eventually changed the design which
turned ou
I can see two option but neither of them is really portable :
I can set _store public in std.typecons or i could create a
setter method.
Neither of these options is portable because i need to directly
edit the librarie's source code so i can't jump from one computer
to the next without having
I started using reference counters for my assets in my
application :
- Images
- Models
-
Such as :
alias ModelType = RefCounted!Model;
struct Model
{
static ModelType create(Mesh mesh, Shader shader) {
ModelType model = ModelType();
model.mesh =