Fun with Radiance library builds

I accidentally left the OpenGL files out of a Radiance library build, and discovered that the ofun[] table is apparently initialized in rglfile.c. Now, maybe I'm confused about this, but that doesn't look right--isn't that an OpenGL file? And isn't Radiance supposed to build without OpenGL?

Randolph

The ofun[] table is initialized in multiple places by multiple programs, depending on what they want done with it. The gen/xform.c program is another, and ot/obj2mesh.c is another.

-Greg

ยทยทยท

From: R Fritz <[email protected]>
Date: July 8, 2008 11:15:26 AM PDT

I accidentally left the OpenGL files out of a Radiance library build, and discovered that the ofun[] table is apparently initialized in rglfile.c. Now, maybe I'm confused about this, but that doesn't look right--isn't that an OpenGL file? And isn't Radiance supposed to build without OpenGL?

Randolph

The ofun[] table is initialized in multiple places by multiple
programs, depending on what they want done with it. The gen/xform.c
program is another, and ot/obj2mesh.c is another.

Oh, it's a template type. Got ya. Now if I can just figure out how to build a Mac shared library that understands that. (Why have these things got so damn complicated?)

Randolph