From 510a44eea799f2370b79e5da532b3004e94bb005 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 21 Apr 2009 19:49:29 +0100 Subject: [PATCH] tests/mipmap_view: add a bunch of keystrokes for testing render-to-texture Move between mipmaps, render a triangle, reload textures with either the original arch (and GenMipmaps) or via straightforward glTexImage. --- progs/tests/mipmap_view.c | 267 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 219 insertions(+), 48 deletions(-) diff --git a/progs/tests/mipmap_view.c b/progs/tests/mipmap_view.c index 85fc67a..808d348 100644 --- a/progs/tests/mipmap_view.c +++ b/progs/tests/mipmap_view.c @@ -18,12 +18,27 @@ #define TEXTURE_FILE "../images/arch.rgb" -static int TexWidth = 256, TexHeight = 256; +#define LEVELS 8 +#define SIZE (1<