]> git.mxchange.org Git - simgear.git/commit
Use osg::Geometry code to draw trees ourselves.
authorTim Moore <timoore@redhat.com>
Wed, 28 Jan 2009 06:43:09 +0000 (07:43 +0100)
committerTim Moore <timoore@redhat.com>
Wed, 28 Jan 2009 06:43:09 +0000 (07:43 +0100)
commit31d9eaf54cc6f57cd01aad4c4b9c1b0fe4046e25
tree9fe1b95b3c9978963ff5be4318d4c974a14301c7
parentf7dc7f039e20a7fa74a87a9e69eb1c463a4baf5d
Use osg::Geometry code to draw trees ourselves.

This reverts back in the direction of Yon's original patch: the model is
drawn within ShaderGeometry::drawImplementation. This saves a lot of memory
over the previous approach of creating a PrimitiveSet for each model.
simgear/scene/tgdb/ShaderGeometry.cxx
simgear/scene/tgdb/ShaderGeometry.hxx