Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Add methods for render and upload to MeshHandle#53

Draft
Masterchef365 wants to merge 2 commits intomainfrom
MeshHandle_methods
Draft

Add methods for render and upload to MeshHandle#53
Masterchef365 wants to merge 2 commits intomainfrom
MeshHandle_methods

Conversation

@Masterchef365
Copy link
Contributor

Slightly improved interface for interfacing with MeshHandle this pattern could be used elsewhere also.

io.send(&CUBE_HANDLE.upload(cube()));
io.create_entity()
    .add_component(CUBE_HANDLE.render().primitive(Primitive::Triangles))
    // ... 

@Masterchef365 Masterchef365 marked this pull request as draft May 7, 2023 00:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant