aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterimagepreview.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:57 -0500
committerJacek Antonelli2008-08-15 23:44:57 -0500
commitda68d3a57ecb27eba5d7efb8ff77d9640c0be65e (patch)
treef2fa2b9ed6e8cf49c8a3cb2a1893c4e5c61916a1 /linden/indra/newview/llfloaterimagepreview.h
parentSecond Life viewer sources 1.15.1.3 (diff)
downloadmeta-impy-da68d3a57ecb27eba5d7efb8ff77d9640c0be65e.zip
meta-impy-da68d3a57ecb27eba5d7efb8ff77d9640c0be65e.tar.gz
meta-impy-da68d3a57ecb27eba5d7efb8ff77d9640c0be65e.tar.bz2
meta-impy-da68d3a57ecb27eba5d7efb8ff77d9640c0be65e.tar.xz
Second Life viewer sources 1.16.0.5
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaterimagepreview.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterimagepreview.h b/linden/indra/newview/llfloaterimagepreview.h
index 57874f1..1d212be 100644
--- a/linden/indra/newview/llfloaterimagepreview.h
+++ b/linden/indra/newview/llfloaterimagepreview.h
@@ -39,6 +39,34 @@ class LLViewerJointMesh;
39class LLVOAvatar; 39class LLVOAvatar;
40class LLTextBox; 40class LLTextBox;
41 41
42class LLImagePreviewSculpted : public LLDynamicTexture
43{
44 public:
45 LLImagePreviewSculpted(S32 width, S32 height);
46 virtual ~LLImagePreviewSculpted();
47
48 void setPreviewTarget(LLImageRaw *imagep, F32 distance);
49 void setTexture(U32 name) { mTextureName = name; }
50
51 BOOL render();
52 void refresh();
53 void rotate(F32 yaw_radians, F32 pitch_radians);
54 void zoom(F32 zoom_amt);
55 void pan(F32 right, F32 up);
56 virtual BOOL needsRender() { return mNeedsUpdate; }
57
58 protected:
59 BOOL mNeedsUpdate;
60 U32 mTextureName;
61 F32 mCameraDistance;
62 F32 mCameraYaw;
63 F32 mCameraPitch;
64 F32 mCameraZoom;
65 LLVector3 mCameraOffset;
66 LLPointer<LLVolume> mVolume;
67};
68
69
42class LLImagePreviewAvatar : public LLDynamicTexture 70class LLImagePreviewAvatar : public LLDynamicTexture
43{ 71{
44public: 72public:
@@ -91,6 +119,7 @@ protected:
91 119
92 LLPointer<LLImageRaw> mRawImagep; 120 LLPointer<LLImageRaw> mRawImagep;
93 LLImagePreviewAvatar* mAvatarPreview; 121 LLImagePreviewAvatar* mAvatarPreview;
122 LLImagePreviewSculpted* mSculptedPreview;
94 S32 mLastMouseX; 123 S32 mLastMouseX;
95 S32 mLastMouseY; 124 S32 mLastMouseY;
96 LLRect mPreviewRect; 125 LLRect mPreviewRect;