--- ray/src/hd/rhdobj.h 1998/08/27 19:33:28 3.3 +++ ray/src/hd/rhdobj.h 1998/12/31 12:57:06 3.5 @@ -44,8 +44,9 @@ int dobj_command(cmd, args) : check/run object display command char *cmd, *args; : command name and argument string -Check to see if this is an object display command, and return the command -number after running it if it is, or -1 if it isn't. Error messages should +Check to see if this is an object display command, and return -1 if +it isn't. If it is a valid command that results in some visible +change, return non-zero, otherwise return 0. Error messages should be printed with error(COMMAND,err). @@ -61,13 +62,14 @@ of the intersected object is returned, or "" if none. then all visible objects are checked, but the name is not returned. -void +int dobj_render() : render visible objects to OpenGL Renders all display objects using OpenGL, assuming desired view has been set. This routine also assumes that the tone-mapping library is being used to set exposure, and it queries this information to -adjust light sources as necessary for illuminated objects. +adjust light sources as necessary for illuminated objects. Returns +the number of objects rendered. void