]> git.mxchange.org Git - simgear.git/commit
optimize creation and sharing of effects
authorTim Moore <timoore@redhat.com>
Fri, 13 Nov 2009 13:59:29 +0000 (14:59 +0100)
committerTim Moore <timoore@redhat.com>
Fri, 13 Nov 2009 21:41:11 +0000 (22:41 +0100)
commit5991195062dad2bd11962eb52a49127e5a636b10
tree4f25d655a13116fec412c69074fd9ac887060c09
parent54c4055af3b106371ed57852c4ad5f1dd087badc
optimize creation and sharing of effects

Implement equality test and hash for for property trees.  In an
Effect, make a hash table of Effects that inherit from it keyed on
their unmerged property tree. Using that, makeEffect() should return a
single Effect for given property tree description. Animations may
change that in the future...
simgear/props/props.cxx
simgear/props/props.hxx
simgear/scene/material/Effect.cxx
simgear/scene/material/Effect.hxx
simgear/scene/material/makeEffect.cxx