Lines Matching defs:desired
41 // Checks whether the desired context attributes are valid
181 // Chooses the framebuffer config that best matches the desired one
183 const _GLFWfbconfig* _glfwChooseFBConfig(const _GLFWfbconfig* desired,
198 if (desired->stereo > 0 && current->stereo == 0)
208 if (desired->alphaBits > 0 && current->alphaBits == 0)
211 if (desired->depthBits > 0 && current->depthBits == 0)
214 if (desired->stencilBits > 0 && current->stencilBits == 0)
217 if (desired->auxBuffers > 0 &&
218 current->auxBuffers < desired->auxBuffers)
220 missing += desired->auxBuffers - current->auxBuffers;
223 if (desired->samples > 0 && current->samples == 0)
231 if (desired->transparent != current->transparent)
242 if (desired->redBits != GLFW_DONT_CARE)
244 colorDiff += (desired->redBits - current->redBits) *
245 (desired->redBits - current->redBits);
248 if (desired->greenBits != GLFW_DONT_CARE)
250 colorDiff += (desired->greenBits - current->greenBits) *
251 (desired->greenBits - current->greenBits);
254 if (desired->blueBits != GLFW_DONT_CARE)
256 colorDiff += (desired->blueBits - current->blueBits) *
257 (desired->blueBits - current->blueBits);
265 if (desired->alphaBits != GLFW_DONT_CARE)
267 extraDiff += (desired->alphaBits - current->alphaBits) *
268 (desired->alphaBits - current->alphaBits);
271 if (desired->depthBits != GLFW_DONT_CARE)
273 extraDiff += (desired->depthBits - current->depthBits) *
274 (desired->depthBits - current->depthBits);
277 if (desired->stencilBits != GLFW_DONT_CARE)
279 extraDiff += (desired->stencilBits - current->stencilBits) *
280 (desired->stencilBits - current->stencilBits);
283 if (desired->accumRedBits != GLFW_DONT_CARE)
285 extraDiff += (desired->accumRedBits - current->accumRedBits) *
286 (desired->accumRedBits - current->accumRedBits);
289 if (desired->accumGreenBits != GLFW_DONT_CARE)
291 extraDiff += (desired->accumGreenBits - current->accumGreenBits) *
292 (desired->accumGreenBits - current->accumGreenBits);
295 if (desired->accumBlueBits != GLFW_DONT_CARE)
297 extraDiff += (desired->accumBlueBits - current->accumBlueBits) *
298 (desired->accumBlueBits - current->accumBlueBits);
301 if (desired->accumAlphaBits != GLFW_DONT_CARE)
303 extraDiff += (desired->accumAlphaBits - current->accumAlphaBits) *
304 (desired->accumAlphaBits - current->accumAlphaBits);
307 if (desired->samples != GLFW_DONT_CARE)
309 extraDiff += (desired->samples - current->samples) *
310 (desired->samples - current->samples);
313 if (desired->sRGB && !current->sRGB)
432 // The desired OpenGL version is greater than the actual version