vgSeti(VG_RENDERING_QUALITY, VG_RENDERING_QUALITY_BETTER); vgSeti(VG_IMAGE_QUALITY, VG_IMAGE_QUALITY_BETTER); vgSeti(VG_SCISSORING, VG_FALSE); // clear with four active scissor rectangles col[0] = 0.6f; col[1] = 0.2f; col[2] = 0.4f; col[3] = 1.0f; vgSetfv(VG_CLEAR_COLOR, 4, col); vgClear(0, 0, 256, 256); vgSeti(VG_SCISSORING, VG_TRUE); scissorRects[0] = 50.0f; scissorRects[1] = 50.0f; scissorRects[2] = 40.0f; scissorRects[3] = 30.0f; scissorRects[4] = 150.0f; scissorRects[5] = 100.0f; scissorRects[6] = 80.0f; scissorRects[7] = 80.0f; scissorRects[8] = 100.0f; scissorRects[9] = 10.0f; scissorRects[10] = 30.0f; scissorRects[11] = 130.0f; scissorRects[12] = 200.0f; scissorRects[13] = 200.0f; scissorRects[14] = 140.0f; scissorRects[15] = 130.0f; vgSetfv(VG_SCISSOR_RECTS, 16, scissorRects); col[0] = 0.2f; col[1] = 0.4f; col[2] = 0.6f; col[3] = 1.0f; vgSetfv(VG_CLEAR_COLOR, 4, col); vgClear(0, 0, 256, 256); saveDrawingSurface(f, "vgclear04.png", "vgClear with four active scissor rectangles.", 0, 0, 256, 256); eglSwapBuffers(display, surface);