diff options
author | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
commit | ce28e056c20bf2723f565bbf464b87781ec248a2 (patch) | |
tree | ef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/llwindow/llwindow.h | |
parent | Second Life viewer sources 1.19.1.4b (diff) | |
download | meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2 meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz |
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/llwindow/llwindow.h')
-rw-r--r-- | linden/indra/llwindow/llwindow.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/linden/indra/llwindow/llwindow.h b/linden/indra/llwindow/llwindow.h index 48ee4d6..89de5a0 100644 --- a/linden/indra/llwindow/llwindow.h +++ b/linden/indra/llwindow/llwindow.h | |||
@@ -107,6 +107,7 @@ public: | |||
107 | virtual BOOL handleMiddleMouseDown(LLWindow *window, LLCoordGL pos, MASK mask); | 107 | virtual BOOL handleMiddleMouseDown(LLWindow *window, LLCoordGL pos, MASK mask); |
108 | virtual BOOL handleMiddleMouseUp(LLWindow *window, LLCoordGL pos, MASK mask); | 108 | virtual BOOL handleMiddleMouseUp(LLWindow *window, LLCoordGL pos, MASK mask); |
109 | virtual BOOL handleActivate(LLWindow *window, BOOL activated); | 109 | virtual BOOL handleActivate(LLWindow *window, BOOL activated); |
110 | virtual BOOL handleActivateApp(LLWindow *window, BOOL activating); | ||
110 | virtual void handleMouseMove(LLWindow *window, LLCoordGL pos, MASK mask); | 111 | virtual void handleMouseMove(LLWindow *window, LLCoordGL pos, MASK mask); |
111 | virtual void handleScrollWheel(LLWindow *window, S32 clicks); | 112 | virtual void handleScrollWheel(LLWindow *window, S32 clicks); |
112 | virtual void handleResize(LLWindow *window, S32 width, S32 height); | 113 | virtual void handleResize(LLWindow *window, S32 width, S32 height); |
@@ -118,6 +119,8 @@ public: | |||
118 | virtual void handleWindowBlock(LLWindow *window); // window is taking over CPU for a while | 119 | virtual void handleWindowBlock(LLWindow *window); // window is taking over CPU for a while |
119 | virtual void handleWindowUnblock(LLWindow *window); // window coming back after taking over CPU for a while | 120 | virtual void handleWindowUnblock(LLWindow *window); // window coming back after taking over CPU for a while |
120 | virtual void handleDataCopy(LLWindow *window, S32 data_type, void *data); | 121 | virtual void handleDataCopy(LLWindow *window, S32 data_type, void *data); |
122 | virtual BOOL handleTimerEvent(LLWindow *window); | ||
123 | virtual BOOL handleDeviceChange(LLWindow *window); | ||
121 | }; | 124 | }; |
122 | 125 | ||
123 | // Refer to llwindow_test in test/common/llwindow for usage example | 126 | // Refer to llwindow_test in test/common/llwindow for usage example |
@@ -154,7 +157,7 @@ public: | |||
154 | virtual BOOL getSize(LLCoordWindow *size) = 0; | 157 | virtual BOOL getSize(LLCoordWindow *size) = 0; |
155 | virtual BOOL setPosition(LLCoordScreen position) = 0; | 158 | virtual BOOL setPosition(LLCoordScreen position) = 0; |
156 | virtual BOOL setSize(LLCoordScreen size) = 0; | 159 | virtual BOOL setSize(LLCoordScreen size) = 0; |
157 | virtual BOOL switchContext(BOOL fullscreen, LLCoordScreen size, BOOL disable_vsync) = 0; | 160 | virtual BOOL switchContext(BOOL fullscreen, const LLCoordScreen &size, BOOL disable_vsync, const LLCoordScreen * const posp = NULL) = 0; |
158 | virtual BOOL setCursorPosition(LLCoordWindow position) = 0; | 161 | virtual BOOL setCursorPosition(LLCoordWindow position) = 0; |
159 | virtual BOOL getCursorPosition(LLCoordWindow *position) = 0; | 162 | virtual BOOL getCursorPosition(LLCoordWindow *position) = 0; |
160 | virtual void showCursor() = 0; | 163 | virtual void showCursor() = 0; |
@@ -184,6 +187,8 @@ public: | |||
184 | virtual void flashIcon(F32 seconds) = 0; | 187 | virtual void flashIcon(F32 seconds) = 0; |
185 | virtual F32 getGamma() = 0; | 188 | virtual F32 getGamma() = 0; |
186 | virtual BOOL setGamma(const F32 gamma) = 0; // Set the gamma | 189 | virtual BOOL setGamma(const F32 gamma) = 0; // Set the gamma |
190 | virtual void setFSAASamples(const U32 fsaa_samples) = 0; //set number of FSAA samples | ||
191 | virtual U32 getFSAASamples() = 0; | ||
187 | virtual BOOL restoreGamma() = 0; // Restore original gamma table (before updating gamma) | 192 | virtual BOOL restoreGamma() = 0; // Restore original gamma table (before updating gamma) |
188 | virtual ESwapMethod getSwapMethod() { return mSwapMethod; } | 193 | virtual ESwapMethod getSwapMethod() { return mSwapMethod; } |
189 | virtual void gatherInput() = 0; | 194 | virtual void gatherInput() = 0; |
@@ -212,9 +217,6 @@ public: | |||
212 | virtual F32 getPixelAspectRatio() = 0; | 217 | virtual F32 getPixelAspectRatio() = 0; |
213 | virtual void setNativeAspectRatio(F32 aspect) = 0; | 218 | virtual void setNativeAspectRatio(F32 aspect) = 0; |
214 | 219 | ||
215 | F32 getJoystickAxis(U32 axis); | ||
216 | U8 getJoystickButton(U32 button); | ||
217 | |||
218 | void setCallbacks(LLWindowCallbacks *callbacks); | 220 | void setCallbacks(LLWindowCallbacks *callbacks); |
219 | 221 | ||
220 | virtual void beforeDialog() {}; // prepare to put up an OS dialog (if special measures are required, such as in fullscreen mode) | 222 | virtual void beforeDialog() {}; // prepare to put up an OS dialog (if special measures are required, such as in fullscreen mode) |
@@ -258,8 +260,6 @@ protected: | |||
258 | ESwapMethod mSwapMethod; | 260 | ESwapMethod mSwapMethod; |
259 | BOOL mHideCursorPermanent; | 261 | BOOL mHideCursorPermanent; |
260 | U32 mFlags; | 262 | U32 mFlags; |
261 | F32 mJoyAxis[8]; | ||
262 | U8 mJoyButtonState[16]; | ||
263 | U16 mHighSurrogate; | 263 | U16 mHighSurrogate; |
264 | 264 | ||
265 | // Handle a UTF-16 encoding unit received from keyboard. | 265 | // Handle a UTF-16 encoding unit received from keyboard. |
@@ -340,7 +340,8 @@ public: | |||
340 | BOOL clearBg = FALSE, | 340 | BOOL clearBg = FALSE, |
341 | BOOL disable_vsync = TRUE, | 341 | BOOL disable_vsync = TRUE, |
342 | BOOL use_gl = TRUE, | 342 | BOOL use_gl = TRUE, |
343 | BOOL ignore_pixel_depth = FALSE); | 343 | BOOL ignore_pixel_depth = FALSE, |
344 | U32 fsaa_samples = 0); | ||
344 | static BOOL destroyWindow(LLWindow* window); | 345 | static BOOL destroyWindow(LLWindow* window); |
345 | static BOOL isWindowValid(LLWindow *window); | 346 | static BOOL isWindowValid(LLWindow *window); |
346 | }; | 347 | }; |