jfcameron / gdk-graphics

3D Rendering using OpenGLES 2.0/WebGL1.0. Platforms: Linux, Windows, Mac, x86 64bit, arm64, wasm
MIT License
1 stars 1 forks source link

webgl1es2_scene::remove_entity: implement #38

Open jfcameron opened 3 years ago

jfcameron commented 3 years ago

some trickiness due to the nested structures used to optimize drawing order. likely having a second, flat collection will be the way to go.

call remove: if entity to remove is in map, call functor at that location which then removes the entity from the correct location in the nested structure and the map.

jfcameron commented 3 years ago

this again makes me think about the value of a "pipeline" class type. I think it will have to be written at some point. when i implement transparency support, a pipline will probably be needed. could then parameterize or specialize it to support all the blending modes