FlightGear next
texture_replace.cxx File Reference
#include <osg/Texture2D>
#include <osg/Geode>
#include <osg/NodeVisitor>
#include <osg/StateSet>
#include <simgear/canvas/CanvasObjectPlacement.hxx>
#include <simgear/scene/material/EffectGeode.hxx>
#include <Main/globals.hxx>
#include <Scenery/scenery.hxx>
#include "texture_replace.hxx"

Go to the source code of this file.

Classes

struct  canvas::GroupListItem
 
class  canvas::ReplaceStaticTextureVisitor
 Replace a texture in the airplane model with another. More...
 

Namespaces

namespace  canvas
 

Functions

simgear::canvas::Placements canvas::set_texture (osg::Node *branch, const char *name, osg::Texture2D *new_texture)
 Replace an opengl texture name inside a given branch of the scene graph.
 
simgear::canvas::Placements canvas::set_aircraft_texture (const char *name, osg::Texture2D *new_texture)
 Replace an opengl texture name inside the aircraft scene graph.
 
simgear::canvas::Placements canvas::set_texture (osg::Node *branch, SGPropertyNode *placement, osg::Texture2D *new_texture, osg::NodeCallback *cull_callback=0, const simgear::canvas::CanvasWeakPtr &canvas=simgear::canvas::CanvasWeakPtr())
 Replace an opengl texture name inside a given branch of the scene graph.
 
simgear::canvas::Placements canvas::set_aircraft_texture (SGPropertyNode *placement, osg::Texture2D *new_texture, osg::NodeCallback *cull_callback=0, const simgear::canvas::CanvasWeakPtr &canvas=simgear::canvas::CanvasWeakPtr())
 Replace an opengl texture name inside the aircraft scene graph.