Files
Bret Curtis 1e2063149f Move the BetaComment texture listing into mwrender
BetaComment walked the object's scene graph from mwscript with its own osg::NodeVisitor, reading state sets, textures and images and reaching into NpcAnimation for the body part nodes, so the script extensions depended on the scene graph only to print a debug listing. The walk and its output now live in MWRender::reportTextures, moved unchanged, and mwscript calls it with the object and its model; mwscript no longer includes npcanimation.hpp or uses any osg scene graph type.
2026-10-18 15:36:06 +02:00

21 lines
517 B
C++

#ifndef OPENMW_MWRENDER_TEXTUREREPORT_H
#define OPENMW_MWRENDER_TEXTUREREPORT_H
#include <iosfwd>
#include <components/vfs/pathutil.hpp>
namespace MWWorld
{
class Ptr;
}
namespace MWRender
{
// Lists the textures bound to the object's scene graph, falling back to its model's template, then each NPC body
// part with its model and textures. Output for the BetaComment console command.
void reportTextures(std::ostream& msg, const MWWorld::Ptr& ptr, const VFS::Path::Normalized& model);
}
#endif