ChatImproVR / chatimprovr

A Virtual World Platform for the future
https://chatimprovr.github.io/
Other
10 stars 1 forks source link

Add methods for render and upload to MeshHandle #53

Open Masterchef365 opened 1 year ago

Masterchef365 commented 1 year ago

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))
    // ...