1 /* 2 * Star field screensaver 3 * 4 * Copyright 2011 Carlo Bramini 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 */ 20 21 #ifndef __SETTINGS_H__ 22 #define __SETTINGS_H__ 23 24 #define ROTATION_NONE 0 25 #define ROTATION_LINEAR 1 26 #define ROTATION_PERIODIC 2 27 #define ROTATION_ITEMS 3 28 29 #define MIN_STARS 10 30 #define MAX_STARS 500 31 32 #define MIN_SPEED 1 33 #define MAX_SPEED 100 34 35 typedef struct { 36 DWORD uiNumStars; 37 DWORD uiSpeed; 38 DWORD uiRotation; 39 DWORD bDoBlending; 40 DWORD bFinePerspective; 41 DWORD bEnableFiltering; 42 DWORD bSmoothShading; 43 } SSSTARS; 44 45 extern SSSTARS Settings; 46 47 void LoadSettings(void); 48 void SaveSettings(void); 49 50 #endif 51