diff options
author | Jacek Antonelli | 2010-02-09 21:11:42 -0600 |
---|---|---|
committer | Jacek Antonelli | 2010-02-16 18:50:15 -0600 |
commit | e6247fbe78c4d3dacb74f3b2359aba2b6538133b (patch) | |
tree | 10c42d670a2c635b4339f7f68809c221756774f8 /linden/indra/newview/llviewercamera.h | |
parent | Ported some cURL and HTTP-related changes from Snowglobe. (diff) | |
download | meta-impy-e6247fbe78c4d3dacb74f3b2359aba2b6538133b.zip meta-impy-e6247fbe78c4d3dacb74f3b2359aba2b6538133b.tar.gz meta-impy-e6247fbe78c4d3dacb74f3b2359aba2b6538133b.tar.bz2 meta-impy-e6247fbe78c4d3dacb74f3b2359aba2b6538133b.tar.xz |
Ported many texture engine changes from Snowglobe.
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewercamera.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/linden/indra/newview/llviewercamera.h b/linden/indra/newview/llviewercamera.h index 6a0c42b..d25d063 100644 --- a/linden/indra/newview/llviewercamera.h +++ b/linden/indra/newview/llviewercamera.h | |||
@@ -71,17 +71,20 @@ public: | |||
71 | BOOL projectPosAgentToScreen(const LLVector3 &pos_agent, LLCoordGL &out_point, const BOOL clamp = TRUE) const; | 71 | BOOL projectPosAgentToScreen(const LLVector3 &pos_agent, LLCoordGL &out_point, const BOOL clamp = TRUE) const; |
72 | BOOL projectPosAgentToScreenEdge(const LLVector3 &pos_agent, LLCoordGL &out_point) const; | 72 | BOOL projectPosAgentToScreenEdge(const LLVector3 &pos_agent, LLCoordGL &out_point) const; |
73 | 73 | ||
74 | 74 | const LLVector3* getVelocityDir() const {return &mVelocityDir;} | |
75 | LLStat *getVelocityStat() { return &mVelocityStat; } | 75 | LLStat *getVelocityStat() { return &mVelocityStat; } |
76 | LLStat *getAngularVelocityStat() { return &mAngularVelocityStat; } | 76 | LLStat *getAngularVelocityStat() { return &mAngularVelocityStat; } |
77 | F32 getCosHalfFov() {return mCosHalfCameraFOV;} | ||
78 | F32 getAverageSpeed() {return mAverageSpeed ;} | ||
79 | F32 getAverageAngularSpeed() {return mAverageAngularSpeed;} | ||
77 | 80 | ||
78 | void getPixelVectors(const LLVector3 &pos_agent, LLVector3 &up, LLVector3 &right); | 81 | void getPixelVectors(const LLVector3 &pos_agent, LLVector3 &up, LLVector3 &right); |
79 | LLVector3 roundToPixel(const LLVector3 &pos_agent); | 82 | LLVector3 roundToPixel(const LLVector3 &pos_agent); |
80 | 83 | ||
81 | // Sets the current matrix | 84 | // Sets the current matrix |
82 | /* virtual */ void setView(F32 vertical_fov_rads); | 85 | /* virtual */ void setView(F32 vertical_fov_rads); |
83 | // Sets the current matrix AND remembers result as default view | 86 | |
84 | void setDefaultFOV(F32 vertical_fov_rads); | 87 | void setDefaultFOV(F32 fov) ; |
85 | F32 getDefaultFOV() { return mCameraFOVDefault; } | 88 | F32 getDefaultFOV() { return mCameraFOVDefault; } |
86 | 89 | ||
87 | BOOL cameraUnderWater() const; | 90 | BOOL cameraUnderWater() const; |
@@ -100,9 +103,14 @@ protected: | |||
100 | 103 | ||
101 | LLStat mVelocityStat; | 104 | LLStat mVelocityStat; |
102 | LLStat mAngularVelocityStat; | 105 | LLStat mAngularVelocityStat; |
106 | LLVector3 mVelocityDir ; | ||
107 | F32 mAverageSpeed ; | ||
108 | F32 mAverageAngularSpeed ; | ||
109 | |||
103 | mutable LLMatrix4 mProjectionMatrix; // Cache of perspective matrix | 110 | mutable LLMatrix4 mProjectionMatrix; // Cache of perspective matrix |
104 | mutable LLMatrix4 mModelviewMatrix; | 111 | mutable LLMatrix4 mModelviewMatrix; |
105 | F32 mCameraFOVDefault; | 112 | F32 mCameraFOVDefault; |
113 | F32 mCosHalfCameraFOV; | ||
106 | LLVector3 mLastPointOfInterest; | 114 | LLVector3 mLastPointOfInterest; |
107 | F32 mPixelMeterRatio; // Divide by distance from camera to get pixels per meter at that distance. | 115 | F32 mPixelMeterRatio; // Divide by distance from camera to get pixels per meter at that distance. |
108 | S32 mScreenPixelArea; // Pixel area of entire window | 116 | S32 mScreenPixelArea; // Pixel area of entire window |