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 63 of file llsprite.cpp.

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

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

Definition at line 76 of file llsprite.cpp.

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

LLSprite::~LLSprite (  ) 

Definition at line 90 of file llsprite.cpp.


Member Function Documentation

F32 LLSprite::getAlpha (  ) 

F32 LLSprite::getAlpha (  )  const [inline]

Definition at line 61 of file llsprite.h.

References mColor, LLColor4::mV, and VALPHA.

LLColor4 LLSprite::getColor (  )  const [inline]

Definition at line 64 of file llsprite.h.

References mColor.

F32 LLSprite::getHeight (  )  const [inline]

Definition at line 58 of file llsprite.h.

References mHeight.

F32 LLSprite::getPitch (  )  const [inline]

Definition at line 60 of file llsprite.h.

References mPitch.

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

Definition at line 63 of file llsprite.h.

References mPosition.

F32 LLSprite::getWidth (  )  const [inline]

Definition at line 57 of file llsprite.h.

References mWidth.

F32 LLSprite::getYaw (  )  const [inline]

Definition at line 59 of file llsprite.h.

References mYaw.

void LLSprite::render ( LLViewerCamera camerap  ) 

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

Definition at line 76 of file llsprite.h.

References mColor, LLColor4::mV, and VALPHA.

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

Definition at line 316 of file llsprite.cpp.

References mColor, and LLColor4::setVec().

void LLSprite::setColor ( const LLColor4 color  ) 

Definition at line 311 of file llsprite.cpp.

References mColor.

Referenced by LLVOAvatar::updateShadowFaces().

void LLSprite::setFollow ( const BOOL  follow  ) 

Definition at line 296 of file llsprite.cpp.

References mFollow.

Referenced by LLVOAvatar::updateShadowFaces().

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

Definition at line 77 of file llsprite.h.

References LLVector3::normVec(), and sNormal.

Referenced by LLVOAvatar::updateShadowFaces().

void LLSprite::setPitch ( const F32  pitch  ) 

Definition at line 277 of file llsprite.cpp.

References mPitch.

void LLSprite::setPosition ( const LLVector3 position  ) 

Definition at line 271 of file llsprite.cpp.

References mPosition.

Referenced by LLSprite(), and LLVOAvatar::updateShadowFaces().

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

Definition at line 283 of file llsprite.cpp.

References mHeight, mHeightDiv2, mWidth, and mWidthDiv2.

Referenced by LLSprite(), and LLVOAvatar::updateShadowFaces().

void LLSprite::setTexMode ( LLGLenum  mode  ) 

Definition at line 306 of file llsprite.cpp.

References mTexMode.

void LLSprite::setUseCameraUp ( const BOOL  use_up  ) 

Definition at line 301 of file llsprite.cpp.

References mUseCameraUp.

void LLSprite::setYaw ( const F32  yaw  ) 

Definition at line 291 of file llsprite.cpp.

References mYaw.

Referenced by LLVOAvatar::updateShadowFaces().

void LLSprite::updateFace ( LLFace face  ) 

Definition at line 94 of file llsprite.cpp.

References dot(), f, face, gCamera, LLCoordFrame::getAtAxis(), LLCoordFrame::getLeftAxis(), LLCoordFrame::getOrigin(), LLCoordFrame::getUpAxis(), mA, LLVertexBuffer::MAP_TEXCOORD, LLVertexBuffer::MAP_VERTEX, mB, mC, mColor, mD, mFollow, mHeightDiv2, mPosition, mScaledRight, mScaledUp, mUseCameraUp, mWidthDiv2, mYaw, LLVector3::normVec(), S32, sCameraPosition, sCameraRight, sCameraUp, LLVector3::setVec(), sNormal, and TRUE.

Referenced by LLVOAvatar::updateShadowFaces().


Member Data Documentation

LLVector3 LLSprite::mA [private]

Definition at line 107 of file llsprite.h.

Referenced by updateFace().

LLVector3 LLSprite::mB [private]

Definition at line 107 of file llsprite.h.

Referenced by updateFace().

LLVector3 LLSprite::mC [private]

Definition at line 107 of file llsprite.h.

Referenced by updateFace().

LLColor4 LLSprite::mColor [private]

Definition at line 97 of file llsprite.h.

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

LLVector3 LLSprite::mD [private]

Definition at line 107 of file llsprite.h.

Referenced by updateFace().

BOOL LLSprite::mFollow [private]

Definition at line 94 of file llsprite.h.

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

F32 LLSprite::mHeight [private]

Definition at line 88 of file llsprite.h.

Referenced by getHeight(), and setSize().

F32 LLSprite::mHeightDiv2 [private]

Definition at line 90 of file llsprite.h.

Referenced by setSize(), and updateFace().

LLUUID LLSprite::mImageID

Definition at line 84 of file llsprite.h.

Referenced by LLSprite().

LLPointer<LLViewerImage> LLSprite::mImagep

Definition at line 85 of file llsprite.h.

Referenced by LLSprite().

F32 LLSprite::mPitch [private]

Definition at line 91 of file llsprite.h.

Referenced by getPitch(), and setPitch().

LLVector3 LLSprite::mPosition [private]

Definition at line 93 of file llsprite.h.

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

LLVector3 LLSprite::mScaledRight [private]

Definition at line 102 of file llsprite.h.

Referenced by updateFace().

LLVector3 LLSprite::mScaledUp [private]

Definition at line 101 of file llsprite.h.

Referenced by updateFace().

LLGLenum LLSprite::mTexMode [private]

Definition at line 98 of file llsprite.h.

Referenced by LLSprite(), and setTexMode().

BOOL LLSprite::mUseCameraUp [private]

Definition at line 95 of file llsprite.h.

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

F32 LLSprite::mWidth [private]

Definition at line 87 of file llsprite.h.

Referenced by getWidth(), and setSize().

F32 LLSprite::mWidthDiv2 [private]

Definition at line 89 of file llsprite.h.

Referenced by setSize(), and updateFace().

F32 LLSprite::mYaw [private]

Definition at line 92 of file llsprite.h.

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

LLVector3 LLSprite::sCameraPosition [static, private]

Definition at line 105 of file llsprite.h.

Referenced by updateFace().

LLVector3 LLSprite::sCameraRight [static, private]

Definition at line 104 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::sNormal [static, private]

Definition at line 106 of file llsprite.h.

Referenced by setNormal(), and updateFace().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:48 2010 for Second Life Viewer by  doxygen 1.4.7