Lines Matching refs:desired
157 const _GLFWfbconfig* _glfwChooseFBConfig(const _GLFWfbconfig* desired, in _glfwChooseFBConfig() argument
172 if (desired->stereo > 0 && current->stereo == 0) in _glfwChooseFBConfig()
178 if (desired->doublebuffer != current->doublebuffer) in _glfwChooseFBConfig()
188 if (desired->alphaBits > 0 && current->alphaBits == 0) in _glfwChooseFBConfig()
191 if (desired->depthBits > 0 && current->depthBits == 0) in _glfwChooseFBConfig()
194 if (desired->stencilBits > 0 && current->stencilBits == 0) in _glfwChooseFBConfig()
197 if (desired->auxBuffers > 0 && in _glfwChooseFBConfig()
198 current->auxBuffers < desired->auxBuffers) in _glfwChooseFBConfig()
200 missing += desired->auxBuffers - current->auxBuffers; in _glfwChooseFBConfig()
203 if (desired->samples > 0 && current->samples == 0) in _glfwChooseFBConfig()
219 if (desired->redBits != GLFW_DONT_CARE) in _glfwChooseFBConfig()
221 colorDiff += (desired->redBits - current->redBits) * in _glfwChooseFBConfig()
222 (desired->redBits - current->redBits); in _glfwChooseFBConfig()
225 if (desired->greenBits != GLFW_DONT_CARE) in _glfwChooseFBConfig()
227 colorDiff += (desired->greenBits - current->greenBits) * in _glfwChooseFBConfig()
228 (desired->greenBits - current->greenBits); in _glfwChooseFBConfig()
231 if (desired->blueBits != GLFW_DONT_CARE) in _glfwChooseFBConfig()
233 colorDiff += (desired->blueBits - current->blueBits) * in _glfwChooseFBConfig()
234 (desired->blueBits - current->blueBits); in _glfwChooseFBConfig()
242 if (desired->alphaBits != GLFW_DONT_CARE) in _glfwChooseFBConfig()
244 extraDiff += (desired->alphaBits - current->alphaBits) * in _glfwChooseFBConfig()
245 (desired->alphaBits - current->alphaBits); in _glfwChooseFBConfig()
248 if (desired->depthBits != GLFW_DONT_CARE) in _glfwChooseFBConfig()
250 extraDiff += (desired->depthBits - current->depthBits) * in _glfwChooseFBConfig()
251 (desired->depthBits - current->depthBits); in _glfwChooseFBConfig()
254 if (desired->stencilBits != GLFW_DONT_CARE) in _glfwChooseFBConfig()
256 extraDiff += (desired->stencilBits - current->stencilBits) * in _glfwChooseFBConfig()
257 (desired->stencilBits - current->stencilBits); in _glfwChooseFBConfig()
260 if (desired->accumRedBits != GLFW_DONT_CARE) in _glfwChooseFBConfig()
262 extraDiff += (desired->accumRedBits - current->accumRedBits) * in _glfwChooseFBConfig()
263 (desired->accumRedBits - current->accumRedBits); in _glfwChooseFBConfig()
266 if (desired->accumGreenBits != GLFW_DONT_CARE) in _glfwChooseFBConfig()
268 extraDiff += (desired->accumGreenBits - current->accumGreenBits) * in _glfwChooseFBConfig()
269 (desired->accumGreenBits - current->accumGreenBits); in _glfwChooseFBConfig()
272 if (desired->accumBlueBits != GLFW_DONT_CARE) in _glfwChooseFBConfig()
274 extraDiff += (desired->accumBlueBits - current->accumBlueBits) * in _glfwChooseFBConfig()
275 (desired->accumBlueBits - current->accumBlueBits); in _glfwChooseFBConfig()
278 if (desired->accumAlphaBits != GLFW_DONT_CARE) in _glfwChooseFBConfig()
280 extraDiff += (desired->accumAlphaBits - current->accumAlphaBits) * in _glfwChooseFBConfig()
281 (desired->accumAlphaBits - current->accumAlphaBits); in _glfwChooseFBConfig()
284 if (desired->samples != GLFW_DONT_CARE) in _glfwChooseFBConfig()
286 extraDiff += (desired->samples - current->samples) * in _glfwChooseFBConfig()
287 (desired->samples - current->samples); in _glfwChooseFBConfig()
290 if (desired->sRGB && !current->sRGB) in _glfwChooseFBConfig()