1 |
– |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ SGI"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Invocation routines for Radiance -> OpenGL materials. |
6 |
|
*/ |
7 |
|
|
8 |
+ |
#include "copyright.h" |
9 |
+ |
|
10 |
|
#include "radogl.h" |
11 |
|
|
12 |
|
|
13 |
+ |
void |
14 |
|
domatobj(mp, cent) /* generate OpenGL material for object */ |
15 |
|
register MATREC *mp; |
16 |
|
FVECT cent; |
17 |
|
{ |
18 |
|
GLfloat vec[4]; |
19 |
|
|
20 |
< |
if (mp == NULL | !domats) |
20 |
> |
if ((mp == NULL) | !domats) |
21 |
|
return; |
22 |
|
if (islight(mp->type)) { |
23 |
|
vec[0] = colval(mp->u.l.emission,RED); |
47 |
|
} |
48 |
|
|
49 |
|
|
50 |
+ |
void |
51 |
|
domatvert(mp, v, n) /* generate OpenGL material for vertex */ |
52 |
|
MATREC *mp; |
53 |
|
FVECT v, n; |
54 |
|
{ |
55 |
+ |
/* unimplemented */ |
56 |
|
} |