Menu

#1 Inspection methods

open
nobody
None
5
2010-02-22
2010-02-22
Anonymous
No

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.

Discussion


Log in to post a comment.