1 |
< |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
2 |
< |
|
3 |
< |
/* SCCSid "$SunId$ SGI" */ |
4 |
< |
|
1 |
> |
/* RCSid: $Id$ */ |
2 |
|
/* |
3 |
|
* Header file for object display routines for rholo drivers. |
4 |
|
*/ |
41 |
|
dobj_command(cmd, args) : check/run object display command |
42 |
|
char *cmd, *args; : command name and argument string |
43 |
|
|
44 |
< |
Check to see if this is an object display command, and return the command |
45 |
< |
number after running it if it is, or -1 if it isn't. Error messages should |
44 |
> |
Check to see if this is an object display command, and return -1 if |
45 |
> |
it isn't. If it is a valid command that results in some visible |
46 |
> |
change, return non-zero, otherwise return 0. Error messages should |
47 |
|
be printed with error(COMMAND,err). |
48 |
|
|
49 |
|
|
59 |
|
then all visible objects are checked, but the name is not returned. |
60 |
|
|
61 |
|
|
62 |
< |
void |
62 |
> |
int |
63 |
|
dobj_render() : render visible objects to OpenGL |
64 |
|
|
65 |
|
Renders all display objects using OpenGL, assuming desired view has |
66 |
|
been set. This routine also assumes that the tone-mapping library |
67 |
|
is being used to set exposure, and it queries this information to |
68 |
< |
adjust light sources as necessary for illuminated objects. |
68 |
> |
adjust light sources as necessary for illuminated objects. Returns |
69 |
> |
the number of objects rendered. |
70 |
|
|
71 |
|
|
72 |
|
void |