Inspection methods
Status: Alpha
Brought to you by:
dibenedetto
It would be nice to have some methods on various objects that would let you detect or read back previous actions you have preformed, for instance having a
SglMeshGL Surface;
...
if ( Surface.hasTopology( 'water' ) )
{ ... }
if ( Surface.hasTopology( 'grass' ) )
{ ... }
if ( Surface.hasTopology( 'dirt' ) )
{ ... }
this kinda setup would be nice, that way if you only create certain Topologies when they exist you can just check the mesh to see if it contains what you want to render, rather then having to store / lookup additional information that would cause you to not create the topology in the first place.
This obviously applies to other objects and options as well, but I at least ran into this particular issue.