88 |
|
/* Duplicate a scene */ |
89 |
|
Scene * dupScene(const Scene *sc); |
90 |
|
|
91 |
+ |
/* Transform entire scene */ |
92 |
+ |
int xfScene(Scene *sc, int xac, char *xav[]); |
93 |
+ |
int xfmScene(Scene *sc, const char *xfm); |
94 |
+ |
|
95 |
|
/* Add a descriptive comment */ |
96 |
|
void addComment(Scene *sc, const char *comment); |
97 |
|
|
152 |
|
int changeMaterial(Scene *sc, const char *mname, |
153 |
|
int flreq, int flexc); |
154 |
|
|
155 |
< |
/* Grab texture coord's/normals from another object via ray tracing */ |
156 |
< |
#define GET_TEXTURE 01 |
157 |
< |
#define GET_NORMALS 02 |
158 |
< |
int traceSurface(Scene *sc, int flreq, int flexc, |
159 |
< |
const char *oct, int what); |
155 |
> |
/* Add a vertex to our scene */ |
156 |
> |
int addVertex(Scene *sc, double x, double y, double z); |
157 |
> |
|
158 |
> |
/* Add a texture coordinate to our scene */ |
159 |
> |
int addTexture(Scene *sc, double u, double v); |
160 |
> |
|
161 |
> |
/* Add a surface normal to our scene */ |
162 |
> |
int addNormal(Scene *sc, double xn, double yn, double zn); |
163 |
> |
|
164 |
> |
/* Set current (last) group */ |
165 |
> |
void setGroup(Scene *sc, const char *nm); |
166 |
> |
|
167 |
> |
/* Set current (last) material */ |
168 |
> |
void setMaterial(Scene *sc, const char *nm); |
169 |
|
|
170 |
|
/* Free a scene */ |
171 |
|
void freeScene(Scene *sc); |