1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
22 // ***************************************************************************
24 // ***************************************************************************
30 BitmapDisplayAdvanced
,
41 // ***************************************************************************
49 // ***************************************************************************
51 extern const CBitmapId BitmapId
[BitmapCount
];
53 // ***************************************************************************
55 // ***************************************************************************
65 PageDisplayOpenGLInfo
,
66 PageDisplayOpenD3DInfo
,
70 // ***************************************************************************
75 * \author Cyril 'Hulud' Corvazier
76 * \author Nevrax France
85 void init (uint id
, const char *name
, bool bold
, uint icon
, uint resid
, CPage
*parent
);
96 std::vector
<CPage
*> Children
;
99 // ***************************************************************************
101 extern CPage Pages
[PageCount
];
103 // ***************************************************************************
107 // ***************************************************************************
109 void CreateDataBase ();
111 // ***************************************************************************
112 // Config File default
113 // ***************************************************************************
115 void LoadConfigFileDefault ();
117 extern NLMISC::CConfigFile ConfigFileDefault
;
119 // ***************************************************************************
121 // ***************************************************************************
125 PreferInferior
= 0, // Default
131 TMergeMethod
GetMergeMethod (const char *varName
);
133 // ***************************************************************************
135 // ***************************************************************************
137 #define QUALITY_STEP 4
138 #define QUALITY_TEXTURE_STEP 3
140 extern const float QualityToLandscapeThreshold
[QUALITY_STEP
];
141 extern const float QualityToZFar
[QUALITY_STEP
];
142 extern const float QualityToLandscapeTileNear
[QUALITY_STEP
];
143 extern const int QualityToSkinNbMaxPoly
[QUALITY_STEP
];
144 extern const int QualityToNbMaxSkeletonNotCLod
[QUALITY_STEP
];
145 extern const int QualityToFxNbMaxPoly
[QUALITY_STEP
];
147 // ***************************************************************************
150 int GetQuality (const T
*table
, T value
)
152 if (table
[0] < table
[QUALITY_STEP
-1])
155 while ((i
<QUALITY_STEP
) && (table
[i
]<value
))
162 while ((i
<QUALITY_STEP
) && (table
[i
]>value
))
168 // ***************************************************************************
170 #endif // NL_DATABASE_H
172 /* End of database.h */