1 #ifndef MWRENDER_CHARACTERPREVIEW_H
2 #define MWRENDER_CHARACTERPREVIEW_H
7 #include <osg/PositionAttitudeTransform>
13 #include "../mwworld/ptr.hpp"
26 class DrawOnceCallback;
32 const osg::Vec3f& position,
const osg::Vec3f& lookAt);
64 osg::ref_ptr<osg::PositionAttitudeTransform>
mNode;
void setAngle(float angleRadians)
Definition: characterpreview.cpp:336
virtual void onSetup()
Definition: characterpreview.cpp:310
Wrapper class that constructs and provides access to the most commonly used resource subsystems...
Definition: resourcesystem.hpp:24
osg::Vec3f mPosition
Definition: characterpreview.hpp:58
void rebuild()
Definition: characterpreview.cpp:172
Definition: characterpreview.hpp:28
float mPitchRadians
Definition: characterpreview.hpp:116
MWWorld::LiveCellRef< ESM::NPC > mRef
Definition: characterpreview.hpp:93
void redraw()
Definition: characterpreview.cpp:184
virtual ~RaceSelectionPreview()
Definition: characterpreview.cpp:332
osg::ref_ptr< osg::PositionAttitudeTransform > mNode
Definition: characterpreview.hpp:64
Definition: characterpreview.hpp:71
void setPrototype(const ESM::NPC &proto)
Definition: characterpreview.cpp:343
ESM::NPC mBase
Definition: characterpreview.hpp:92
InventoryPreview(osg::Group *parent, Resource::ResourceSystem *resourceSystem, MWWorld::Ptr character)
Definition: characterpreview.cpp:193
virtual bool renderHeadOnly()
Definition: characterpreview.hpp:49
osg::ref_ptr< osg::Texture2D > getTexture()
Definition: characterpreview.cpp:167
Definition: characterpreview.hpp:90
int mSizeY
Definition: characterpreview.hpp:68
osg::ref_ptr< UpdateCameraCallback > mUpdateCameraCallback
Definition: characterpreview.hpp:114
Definition: loadnpc.hpp:23
virtual bool renderHeadOnly()
Definition: characterpreview.hpp:97
osg::Vec3f mLookAt
Definition: characterpreview.hpp:59
CharacterPreview & operator=(const CharacterPreview &)
Definition: characterpreview.cpp:350
std::string mCurrentAnimGroup
Definition: characterpreview.hpp:65
int mSizeX
Definition: characterpreview.hpp:67
osg::ref_ptr< osg::Group > mParent
Definition: characterpreview.hpp:52
osg::ref_ptr< DrawOnceCallback > mDrawOnceCallback
Definition: characterpreview.hpp:56
osg::ref_ptr< osg::Texture2D > mTexture
Definition: characterpreview.hpp:54
void setViewport(int sizeX, int sizeY)
Definition: characterpreview.cpp:198
Resource::ResourceSystem * mResourceSystem
Definition: characterpreview.hpp:53
virtual void onSetup()
Definition: characterpreview.cpp:383
int getTextureHeight() const
Definition: characterpreview.cpp:158
CharacterPreview(osg::Group *parent, Resource::ResourceSystem *resourceSystem, MWWorld::Ptr character, int sizeX, int sizeY, const osg::Vec3f &position, const osg::Vec3f &lookAt)
Definition: characterpreview.cpp:68
std::auto_ptr< MWRender::NpcAnimation > mAnimation
Definition: characterpreview.hpp:63
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
virtual ~CharacterPreview()
Definition: characterpreview.cpp:147
const ESM::NPC & getPrototype() const
Definition: characterpreview.hpp:106
osg::ref_ptr< osg::Camera > mCamera
Definition: characterpreview.hpp:55
void updatePtr(const MWWorld::Ptr &ptr)
Definition: characterpreview.cpp:305
MWWorld::Ptr mCharacter
Definition: characterpreview.hpp:61
RaceSelectionPreview(osg::Group *parent, Resource::ResourceSystem *resourceSystem)
Definition: characterpreview.cpp:322
virtual void onSetup()
Definition: characterpreview.cpp:163
void update()
Definition: characterpreview.cpp:208
int getSlotSelected(int posX, int posY)
Definition: characterpreview.cpp:276
int getTextureWidth() const
Definition: characterpreview.cpp:153