PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 4ms RepoModel.GetById 36ms app.codeStats 0ms

/indra/newview/llvotextbubble.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 66 lines | 31 code | 10 blank | 25 comment | 0 complexity | c225bc8fabb2c0a359f8c52190c9856e MD5 | raw file
 1/** 
 2 * @file llvotextbubble.h
 3 * @brief Description of LLVORock class, which a derivation of LLViewerObject
 4 *
 5 * $LicenseInfo:firstyear=2001&license=viewerlgpl$
 6 * Second Life Viewer Source Code
 7 * Copyright (C) 2010, Linden Research, Inc.
 8 * 
 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation;
12 * version 2.1 of the License only.
13 * 
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 * Lesser General Public License for more details.
18 * 
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22 * 
23 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
24 * $/LicenseInfo$
25 */
26
27#ifndef LL_LLVOTEXTBUBBLE_H
28#define LL_LLVOTEXTBUBBLE_H
29
30#include "llviewerobject.h"
31#include "llframetimer.h"
32
33class LLVOTextBubble : public LLAlphaObject
34{
35public:
36	LLVOTextBubble(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp);
37
38	/*virtual*/ BOOL    isActive() const; // Whether this object needs to do an idleUpdate.
39	/*virtual*/ BOOL idleUpdate(LLAgent &agent, LLWorld &world, const F64 &time);
40
41	/*virtual*/ void updateTextures();
42	/*virtual*/ LLDrawable* createDrawable(LLPipeline *pipeline);
43	/*virtual*/ BOOL		updateGeometry(LLDrawable *drawable);
44	/*virtual*/ BOOL		updateLOD();
45	/*virtual*/ void		updateFaceSize(S32 idx);
46	
47	/*virtual*/ void		getGeometry(S32 idx,
48								LLStrider<LLVector3>& verticesp,
49								LLStrider<LLVector3>& normalsp, 
50								LLStrider<LLVector2>& texcoordsp,
51								LLStrider<LLColor4U>& colorsp, 
52								LLStrider<U16>& indicesp);
53
54	virtual U32 getPartitionType() const;
55
56	LLColor4 mColor;
57	S32 mLOD;
58	BOOL mVolumeChanged;
59
60protected:
61	~LLVOTextBubble();
62	BOOL setVolume(const LLVolumeParams &volume_params, const S32 detail, bool unique_volume = false);
63	LLFrameTimer mUpdateTimer;
64};
65
66#endif // LL_VO_TEXT_BUBBLE