|
From: Brian S. <br...@gl...> - 2000-12-15 15:54:50
|
At 07:44 AM 12/15/00 -0800, you wrote: >glean itself has never required glut, although the tiff tools >(showtiff and difftiff) have. So technically there's a new >dependency, but only for the glean executable. > >... > >Sounds like we could use a couple of new functions in geomutils.cpp or >glutils.cpp to generate spheres. (We already have utilities to >generate other kinds of geometry for testing, so this would probably >fit right in.) I'm working on this right now. What I'm planning on doing is the following: -- Adding two objects, one to generate spheres, and one to generate tessellated planes (not sure if the latter is already covered by one of those, I'll check). -- Adding an object, GeomRenderer, that can be used in conjunction with these objects, to render primitives in a variety of ways. One of my concerns with some tests I'm writing is that drivers do things wildly differently sometimes depending on which method you use to pass in the geometry, so GeomRenderer will take a pile of data and render it for you in one of a host of ways: Immediate Mode: glVertex Vertex Arrays: glArrayElement Vertex Arrays: glDrawArrays Vertex Arrays: glDrawElements Any of the above baked into a display list. It also allows you to specify which parameters are enabled or disabled (vertices, normals, colors, texcoords, etc.) This way I hope it'll be easy to take the texgen test and others I'm writing and just have them iterate over what they're already doing 10 times or so, each done using a different geometry path. I think it should be really handy. .b |