Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
2.0 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. //
  9. // Half-Life Model Viewer (c) 1999 by Mete Ciragan
  10. //
  11. // file: ViewerSettings.h
  12. // last modified: May 29 1999, Mete Ciragan
  13. // copyright: The programs and associated files contained in this
  14. // distribution were developed by Mete Ciragan. The programs
  15. // are not in the public domain, but they are freely
  16. // distributable without licensing fees. These programs are
  17. // provided without guarantee or warrantee expressed or
  18. // implied.
  19. //
  20. // version: 1.2
  21. //
  22. // email: [email protected]
  23. // web: http://www.swissquake.ch/chumbalum-soft/
  24. //
  25. #ifndef INCLUDED_VIEWERSETTINGS
  26. #define INCLUDED_VIEWERSETTINGS
  27. enum // render modes
  28. {
  29. RM_WIREFRAME,
  30. RM_FLATSHADED,
  31. RM_SMOOTHSHADED,
  32. RM_TEXTURED
  33. };
  34. typedef struct
  35. {
  36. // model
  37. float rot[3];
  38. float trans[3];
  39. // render
  40. int renderMode;
  41. float transparency;
  42. bool showBackground;
  43. bool showGround;
  44. bool showHitBoxes;
  45. bool showBones;
  46. bool showTexture;
  47. bool showAttachments;
  48. int texture;
  49. float textureScale;
  50. int skin;
  51. bool mirror;
  52. bool useStencil; // if 3dfx fullscreen set false
  53. // animation
  54. int sequence;
  55. float speedScale;
  56. // bodyparts and bonecontrollers
  57. int submodels[32];
  58. float controllers[8];
  59. // fullscreen
  60. int width, height;
  61. bool use3dfx;
  62. bool cds;
  63. // colors
  64. float bgColor[4];
  65. float lColor[4];
  66. float gColor[4];
  67. // misc
  68. int textureLimit;
  69. bool pause;
  70. // only used for fullscreen mode
  71. char modelFile[256];
  72. char backgroundTexFile[256];
  73. char groundTexFile[256];
  74. } ViewerSettings;
  75. extern ViewerSettings g_viewerSettings;
  76. #ifdef __cplusplus
  77. extern "C" {
  78. #endif
  79. void InitViewerSettings (void);
  80. int LoadViewerSettings (const char *filename);
  81. int SaveViewerSettings (const char *filename);
  82. #ifdef __cplusplus
  83. }
  84. #endif
  85. #endif // INCLUDED_VIEWERSETTINGS