Lines Matching defs:width
304 bool ValidateReadBufferCenteredQuad(int width, int height, const vec3& expected)
307 std::vector<vec3> fb(width * height);
308 glReadPixels(0, 0, width, height, GL_RGB, GL_FLOAT, &fb[0]);
310 int startx = int(((float)width * 0.1f) + 1);
312 int endx = int((float)width - 2 * (((float)width * 0.1f) + 1) - 1);
319 const int idx = y * width + x;
327 if (!ColorEqual(fb[2 * width + 2], vec3(0), g_color_eps))
331 if (!ColorEqual(fb[2 * width + (width - 3)], vec3(0), g_color_eps))
335 if (!ColorEqual(fb[(height - 3) * width + (width - 3)], vec3(0), g_color_eps))
339 if (!ColorEqual(fb[(height - 3) * width + 2], vec3(0), g_color_eps))
359 int width = 100;
361 std::vector<vec3> fb(width * height);
362 glReadPixels(0, 0, width, height, GL_RGB, GL_FLOAT, &fb[0]);
369 for (int x = 10; x < width / 2 - 10; ++x)
371 const int idx = y * width + x;
384 for (int x = width / 2 + 10; x < width - 10; ++x)
386 const int idx = y * width + x;
399 for (int x = width / 2 + 10; x < width - 10; ++x)
401 const int idx = y * width + x;
414 for (int x = 10; x < width / 2 - 10; ++x)
416 const int idx = y * width + x;
429 for (int x = 0; x < width; ++x)
431 const int idx = y * width + x;
444 for (int x = width / 2 - 2; x < width / 2 + 2; ++x)
446 const int idx = y * width + x;