Skip to content

Commit

Permalink
Add skin-library and skin support to polygon rendering styles via the…
Browse files Browse the repository at this point in the history
… resource library (see feature_polygons_textures.earth)
  • Loading branch information
gwaldron committed Dec 17, 2024
1 parent 4069b06 commit 513aa45
Show file tree
Hide file tree
Showing 11 changed files with 431 additions and 462 deletions.
2 changes: 1 addition & 1 deletion src/applications/osgearth_atlas/osgearth_atlas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ show(osg::ArgumentParser& arguments)
if (drawLabels)
{
osgText::Text* label = new osgText::Text();
label->setText(skins[k]->name());
label->setText(skins[k]->name().value());
label->setPosition(osg::Vec3(x+0.5*s, -0.005f, y+0.5*t));
label->setAlignment(label->CENTER_CENTER);
label->setAutoRotateToScreen(true);
Expand Down
15 changes: 2 additions & 13 deletions src/osgEarth/BuildGeometryFilter
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/

#ifndef OSGEARTHFEATURES_BUILD_GEOMETRY_FILTER_H
#define OSGEARTHFEATURES_BUILD_GEOMETRY_FILTER_H 1
#pragma once

#include <osgEarth/Common>
#include <osgEarth/Feature>
Expand Down Expand Up @@ -119,14 +117,7 @@ namespace osgEarth { namespace Util
bool makeECEF,
bool tessellate,
osg::Geometry* osgGeom,
const osg::Matrixd &world2local);

void buildPolygon(
Geometry* input,
const SpatialReference* featureSRS,
const SpatialReference* mapSRS,
bool makeECEF,
osg::Geometry* osgGeom,
const SkinResource* skinResource,
const osg::Matrixd &world2local);

osg::Geode* processPolygons (FeatureList& input, FilterContext& cx);
Expand All @@ -136,5 +127,3 @@ namespace osgEarth { namespace Util
osg::Geode* processMeshes(FeatureList& input, FilterContext& cx);
};
} }

#endif // OSGEARTHFEATURES_BUILD_GEOMETRY_FILTER_H
Loading

0 comments on commit 513aa45

Please sign in to comment.