LLSprite Class Reference

#include <llsprite.h>

Collaboration diagram for LLSprite:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLSprite (const LLUUID &image_uuid)
 LLSprite (const LLUUID &image_uuid, const F32 width, const F32 height, const BOOL b_usemipmap=TRUE)
 ~LLSprite ()
void render (LLViewerCamera *camerap)
F32 getWidth () const
F32 getHeight () const
F32 getYaw () const
F32 getPitch () const
F32 getAlpha () const
LLVector3 getPosition () const
LLColor4 getColor () const
void setPosition (const LLVector3 &position)
void setPitch (const F32 pitch)
void setSize (const F32 width, const F32 height)
void setYaw (const F32 yaw)
void setFollow (const BOOL follow)
void setUseCameraUp (const BOOL use_up)
void setTexMode (LLGLenum mode)
void setColor (const LLColor4 &color)
void setColor (const F32 r, const F32 g, const F32 b, const F32 a)
void setAlpha (const F32 alpha)
void setNormal (const LLVector3 &normal)
F32 getAlpha ()
void updateFace (LLFace &face)

Public Attributes

LLUUID mImageID
LLPointer< LLViewerImagemImagep

Private Attributes

F32 mWidth
F32 mHeight
F32 mWidthDiv2
F32 mHeightDiv2
F32 mPitch
F32 mYaw
LLVector3 mPosition
BOOL mFollow
BOOL mUseCameraUp
LLColor4 mColor
LLGLenum mTexMode
LLVector3 mScaledUp
LLVector3 mScaledRight
LLVector3 mA
LLVector3 mB
LLVector3 mC
LLVector3 mD

Static Private Attributes

static LLVector3 sCameraUp
static LLVector3 sCameraRight
static LLVector3 sCameraPosition
static LLVector3 sNormal


Detailed Description

Definition at line 48 of file llsprite.h.


Constructor & Destructor Documentation

LLSprite::LLSprite ( const LLUUID image_uuid  ) 

Definition at line 62 of file llsprite.cpp.

References mColor, mFollow, mImageID, mImagep, mTexMode, mUseCameraUp, NULL, setPosition(), setSize(), LLColor4::setVec(), and TRUE.

Here is the call graph for this function:

LLSprite::LLSprite ( const LLUUID image_uuid,
const F32  width,
const F32  height,
const BOOL  b_usemipmap = TRUE 
)

Definition at line 75 of file llsprite.cpp.

References mColor, mFollow, mImageID, mImagep, mTexMode, mUseCameraUp, NULL, setPosition(), setSize(), LLColor4::setVec(), and TRUE.

Here is the call graph for this function:

LLSprite::~LLSprite (  ) 

Definition at line 89 of file llsprite.cpp.


Member Function Documentation

void LLSprite::render ( LLViewerCamera camerap  ) 

F32 LLSprite::getWidth (  )  const [inline]

Definition at line 57 of file llsprite.h.

References mWidth.

F32 LLSprite::getHeight (  )  const [inline]

Definition at line 58 of file llsprite.h.

References mHeight.

F32 LLSprite::getYaw (  )  const [inline]

Definition at line 59 of file llsprite.h.

References mYaw.

F32 LLSprite::getPitch (  )  const [inline]

Definition at line 60 of file llsprite.h.

References mPitch.

F32 LLSprite::getAlpha (  )  const [inline]

Definition at line 61 of file llsprite.h.

References mColor, LLColor4::mV, and VALPHA.

LLVector3 LLSprite::getPosition ( void   )  const [inline]

Definition at line 63 of file llsprite.h.

References mPosition.

LLColor4 LLSprite::getColor (  )  const [inline]

Definition at line 64 of file llsprite.h.

References mColor.

void LLSprite::setPosition ( const LLVector3 position  ) 

Definition at line 266 of file llsprite.cpp.

References mPosition.

Referenced by LLSprite().

Here is the caller graph for this function:

void LLSprite::setPitch ( const F32  pitch  ) 

Definition at line 272 of file llsprite.cpp.

References mPitch.

void LLSprite::setSize ( const F32  width,
const F32  height 
)

Definition at line 278 of file llsprite.cpp.

References mHeight, mHeightDiv2, mWidth, and mWidthDiv2.

Referenced by LLSprite().

Here is the caller graph for this function:

void LLSprite::setYaw ( const F32  yaw  ) 

Definition at line 286 of file llsprite.cpp.

References mYaw.

void LLSprite::setFollow ( const BOOL  follow  ) 

Definition at line 291 of file llsprite.cpp.

References mFollow.

void LLSprite::setUseCameraUp ( const BOOL  use_up  ) 

Definition at line 296 of file llsprite.cpp.

References mUseCameraUp.

void LLSprite::setTexMode ( LLGLenum  mode  ) 

Definition at line 301 of file llsprite.cpp.

References mTexMode.

void LLSprite::setColor ( const LLColor4 color  ) 

Definition at line 306 of file llsprite.cpp.

References mColor.

void LLSprite::setColor ( const F32  r,
const F32  g,
const F32  b,
const F32  a 
)

Definition at line 311 of file llsprite.cpp.

References mColor, and LLColor4::setVec().

Here is the call graph for this function:

void LLSprite::setAlpha ( const F32  alpha  )  [inline]

Definition at line 76 of file llsprite.h.

References mColor, LLColor4::mV, and VALPHA.

void LLSprite::setNormal ( const LLVector3 normal  )  [inline]

Definition at line 77 of file llsprite.h.

References LLVector3::normVec(), and sNormal.

Here is the call graph for this function:

F32 LLSprite::getAlpha (  ) 

void LLSprite::updateFace ( LLFace face  ) 


Member Data Documentation

Definition at line 84 of file llsprite.h.

Referenced by LLSprite().

Definition at line 85 of file llsprite.h.

Referenced by LLSprite().

F32 LLSprite::mWidth [private]

Definition at line 87 of file llsprite.h.

Referenced by getWidth(), and setSize().

Definition at line 88 of file llsprite.h.

Referenced by getHeight(), and setSize().

Definition at line 89 of file llsprite.h.

Referenced by setSize(), and updateFace().

Definition at line 90 of file llsprite.h.

Referenced by setSize(), and updateFace().

F32 LLSprite::mPitch [private]

Definition at line 91 of file llsprite.h.

Referenced by getPitch(), and setPitch().

F32 LLSprite::mYaw [private]

Definition at line 92 of file llsprite.h.

Referenced by getYaw(), setYaw(), and updateFace().

Definition at line 93 of file llsprite.h.

Referenced by getPosition(), setPosition(), and updateFace().

Definition at line 94 of file llsprite.h.

Referenced by LLSprite(), setFollow(), and updateFace().

Definition at line 95 of file llsprite.h.

Referenced by LLSprite(), setUseCameraUp(), and updateFace().

Definition at line 97 of file llsprite.h.

Referenced by getAlpha(), getColor(), LLSprite(), setAlpha(), setColor(), and updateFace().

Definition at line 98 of file llsprite.h.

Referenced by LLSprite(), and setTexMode().

Definition at line 101 of file llsprite.h.

Referenced by updateFace().

Definition at line 102 of file llsprite.h.

Referenced by updateFace().

LLVector3 LLSprite::sCameraUp [static, private]

Definition at line 103 of file llsprite.h.

Referenced by updateFace().

LLVector3 LLSprite::sCameraRight [static, private]

Definition at line 104 of file llsprite.h.

Referenced by updateFace().

Definition at line 105 of file llsprite.h.

Referenced by updateFace().

LLVector3 LLSprite::sNormal [static, private]

Definition at line 106 of file llsprite.h.

Referenced by setNormal(), and updateFace().

Definition at line 107 of file llsprite.h.

Referenced by updateFace().

Definition at line 107 of file llsprite.h.

Referenced by updateFace().

Definition at line 107 of file llsprite.h.

Referenced by updateFace().

Definition at line 107 of file llsprite.h.

Referenced by updateFace().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:06:50 2008 for SecondLife by  doxygen 1.5.5