home *** CD-ROM | disk | FTP | other *** search
/ Learn 3D Graphics Programming on the PC / Learn_3D_Graphics_Programming_on_the_PC_Ferraro.iso / rwwin / xettings.h_ / xettings.bin
Text File  |  1995-11-14  |  3KB  |  96 lines

  1. #if !defined(_SETTINGS_H)
  2. #define _SETTINGS_H
  3.  
  4. /**********************************************************************
  5.  *
  6.  * File :     settings.h
  7.  *
  8.  * Abstract : The interface to some functions which handle the
  9.  *            persistent settings of the viewer.
  10.  *
  11.  *            This application had been written to be compatible with
  12.  *            both the fixed and floating-point versions of the
  13.  *            RenderWare library, i.e., it uses the macros CREAL,
  14.  *            INT2REAL, RAdd, RDiv, RSub etc. If your application is
  15.  *            intended for the floating-point version of the library
  16.  *            only these macros are not necessary.
  17.  *
  18.  *            Please note that this application is intended for
  19.  *            demonstration purposes only. No support will be
  20.  *            provided for this code and it comes with no warranty.
  21.  *
  22.  **********************************************************************
  23.  *
  24.  * This file is a product of Criterion Software Ltd.
  25.  *
  26.  * This file is provided as is with no warranties of any kind and is
  27.  * provided without any obligation on Criterion Software Ltd. or
  28.  * Canon Inc. to assist in its use or modification.
  29.  *
  30.  * Criterion Software Ltd. will not, under any
  31.  * circumstances, be liable for any lost revenue or other damages arising
  32.  * from the use of this file.
  33.  *
  34.  * Copyright (c) 1994, 1995 Criterion Software Ltd.
  35.  * All Rights Reserved.
  36.  *
  37.  * RenderWare is a trademark of Canon Inc.
  38.  *
  39.  **********************************************************************/
  40.  
  41. /**********************************************************************
  42.  *
  43.  * Constant definitions.
  44.  *
  45.  **********************************************************************/
  46.  
  47. /*
  48.  * Number of MRU files we store.
  49.  */
  50. #define MAXMRUFILES               4
  51.  
  52. /**********************************************************************
  53.  *
  54.  * Exported Data.
  55.  *
  56.  **********************************************************************/
  57.  
  58. /*
  59.  * This flag is set if the user has modified the settings in this
  60.  * session.
  61.  */
  62. extern RwBool      SettingsChanged;
  63.  
  64. /*
  65.  * Basic options.
  66.  */
  67. extern COLORREF    BackgroundColor;
  68. extern RwBool      CenterBackdrop;
  69. extern char        BackdropFileName[_MAX_PATH];
  70. extern RwBool      ShowHighlight;
  71. extern RwBool      ShowLights;
  72. extern RwBool      PlayMovies;
  73. extern RwBool      Momentum;
  74.  
  75. /*
  76.  * MRU file names.
  77.  */
  78. extern int         NumMRUFiles;
  79. extern char       *MRUFiles[MAXMRUFILES];
  80.  
  81. /**********************************************************************
  82.  *
  83.  * Functions.
  84.  *
  85.  **********************************************************************/
  86.  
  87. extern void        ReadSettings(void);
  88. extern void        WriteSettings(BOOL writeAll);
  89. extern void        AppendMRUFileMenuItems(HWND window);
  90. extern void        DeleteMRUFileMenuItems(HWND window);
  91. extern void        AddFileToMRUFileList(char *fileName);
  92.  
  93. /**********************************************************************/
  94.  
  95. #endif /* !defined(_SETTINGS_H) */
  96.