Lines Matching defs:width
296 bool ValidateReadBufferCenteredQuad(int width, int height, const vec3& expected)
299 std::vector<vec3> fb(width * height);
300 std::vector<GLubyte> data(width * height * 4);
301 glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, &data[0]);
303 for (int i = 0; i < width * height * 4; i += 4)
309 int startx = int((static_cast<float>(width) * 0.1f) + 1);
311 int endx = int(static_cast<float>(width) - 2 * ((static_cast<float>(width) * 0.1f) + 1) - 1);
318 const int idx = y * width + x;
326 if (!ColorEqual(fb[2 * width + 2], vec3(0), g_color_eps))
330 if (!ColorEqual(fb[2 * width + (width - 3)], vec3(0), g_color_eps))
334 if (!ColorEqual(fb[(height - 3) * width + (width - 3)], vec3(0), g_color_eps))
338 if (!ColorEqual(fb[(height - 3) * width + 2], vec3(0), g_color_eps))
358 int width = 100;
360 std::vector<vec3> fb(width * height);
361 std::vector<GLubyte> data(width * height * 4);
362 glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, &data[0]);
364 for (int i = 0; i < width * height * 4; i += 4)
375 for (int x = 10; x < width / 2 - 10; ++x)
377 const int idx = y * width + x;
390 for (int x = width / 2 + 10; x < width - 10; ++x)
392 const int idx = y * width + x;
405 for (int x = width / 2 + 10; x < width - 10; ++x)
407 const int idx = y * width + x;
420 for (int x = 10; x < width / 2 - 10; ++x)
422 const int idx = y * width + x;
435 for (int x = 0; x < width; ++x)
437 const int idx = y * width + x;
450 for (int x = width / 2 - 2; x < width / 2 + 2; ++x)
452 const int idx = y * width + x;