PageRenderTime 17ms CodeModel.GetById 4ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1
  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. #ifndef LL_LLFLOATER_HARDWARE_SETTINGS_H
  27. #define LL_LLFLOATER_HARDWARE_SETTINGS_H
  28. #include "llfloater.h"
  29. /// Menuing system for all of windlight's functionality
  30. class LLFloaterHardwareSettings : public LLFloater
  31. {
  32. friend class LLFloaterPreference;
  33. public:
  34. LLFloaterHardwareSettings(const LLSD& key);
  35. /*virtual*/ ~LLFloaterHardwareSettings();
  36. /*virtual*/ BOOL postBuild();
  37. /// initialize all the callbacks for the menu
  38. void initCallbacks(void);
  39. /// OK button
  40. static void onBtnOK( void* userdata );
  41. //// menu management
  42. /// show off our menu
  43. static void show();
  44. /// return if the menu exists or not
  45. static bool isOpen();
  46. /// sync up menu with parameters
  47. void refresh();
  48. /// Apply the changed values.
  49. void apply();
  50. /// don't apply the changed values
  51. void cancel();
  52. /// refresh the enabled values
  53. void refreshEnabledState();
  54. protected:
  55. BOOL mUseVBO;
  56. BOOL mUseAniso;
  57. BOOL mUseFBO;
  58. U32 mFSAASamples;
  59. F32 mGamma;
  60. S32 mVideoCardMem;
  61. F32 mFogRatio;
  62. BOOL mProbeHardwareOnStartup;
  63. private:
  64. };
  65. #endif