8 #ifndef VTLIB_IMAGESPRITE
9 #define VTLIB_IMAGESPRITE
21 bool Create(
const char *szTextureName,
bool bBlending =
false);
22 bool Create(osg::Image *pImage,
bool bBlending =
false);
23 IPoint2 GetSize()
const {
return m_Size; }
24 void SetPosition(
float l,
float t,
float r,
float b,
float rot = 0.0f);
26 vtGeode *GetGeode()
const {
return m_pGeode; }
29 vtMaterialArrayPtr m_pMats;
44 void SetRect(
const FRECT &rect) { m_rect = rect; }
45 FRECT GetRect() {
return m_rect; }
46 FRECT GetWindowRect() {
return m_window_rect; }
49 void SetRotation(
float rot) { m_fRotation = rot; }
50 float GetRotation() {
return m_fRotation; }
58 osg::ref_ptr<vtImageSprite> m_pSprite;
61 #endif // VTLIB_IMAGESPRITE