PageRenderTime 60ms CodeModel.GetById 46ms app.highlight 8ms RepoModel.GetById 2ms app.codeStats 0ms

/indra/newview/llfloaterhardwaresettings.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 84 lines | 30 code | 19 blank | 35 comment | 0 complexity | 43a2e3438eae5aa73dbfcc56cca821e0 MD5 | raw file
 1/** 
 2 * @file llfloaterhardwaresettings.h
 3 * @brief Menu of all the different graphics hardware settings
 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_LLFLOATER_HARDWARE_SETTINGS_H
28#define LL_LLFLOATER_HARDWARE_SETTINGS_H
29
30#include "llfloater.h"
31
32/// Menuing system for all of windlight's functionality
33class LLFloaterHardwareSettings : public LLFloater
34{
35	friend class LLFloaterPreference;
36
37public:
38
39	LLFloaterHardwareSettings(const LLSD& key);
40	/*virtual*/ ~LLFloaterHardwareSettings();
41	
42	/*virtual*/ BOOL postBuild();
43
44	/// initialize all the callbacks for the menu
45	void initCallbacks(void);
46
47	/// OK button
48	static void onBtnOK( void* userdata );
49	
50	//// menu management
51
52	/// show off our menu
53	static void show();
54
55	/// return if the menu exists or not
56	static bool isOpen();
57
58	/// sync up menu with parameters
59	void refresh();
60
61	/// Apply the changed values.
62	void apply();
63	
64	/// don't apply the changed values
65	void cancel();
66
67	/// refresh the enabled values
68	void refreshEnabledState();
69
70protected:
71	BOOL mUseVBO;
72	BOOL mUseAniso;
73	BOOL mUseFBO;
74	U32 mFSAASamples;
75	F32 mGamma;
76	S32 mVideoCardMem;
77	F32 mFogRatio;
78	BOOL mProbeHardwareOnStartup;
79
80private:
81};
82
83#endif
84