File: create.h

package info (click to toggle)
cmix 2.0.12-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,920 kB
  • ctags: 6,063
  • sloc: cpp: 27,139; ansic: 11,924; sh: 2,795; exp: 2,270; yacc: 1,724; makefile: 1,247; lex: 488; perl: 278
file content (44 lines) | stat: -rw-r--r-- 1,456 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
 * Time-stamp: <98/11/05 15:20:37 panic>
 * Author:	The C-Mix Project <cmix@diku.dk>
 *         	Peter Holst Andersen <txix@diku.dk>
 *              Arne John Glenstrup  <panic@diku.dk>
 * Contents:	Functions declarations for creating the scene: create_*
 */

#ifndef __CREATE_H
#define __CREATE_H

#include "ray.h"

surfaceT create_simple_surface(myfloat am, myfloat di,
			       myfloat re, myfloat tr, myfloat ref, int specpow);

surfaceT create_color_surface(myfloat am, myfloat di,
			      myfloat re, myfloat tr, myfloat ref, int specpow,
			      myfloat red, myfloat green, myfloat blue);

surfaceT create_special_color_surface(myfloat amred, myfloat amgreen, myfloat amblue,
				      myfloat dired, myfloat digreen, myfloat diblue,
				      myfloat re, myfloat tr, myfloat ref, int specpow);

surfaceT create_checked_surface(surfaceT s1, surfaceT s2, myfloat checksize);

objectT create_disc(myfloat cx, myfloat cy, myfloat cz,
		    myfloat nx, myfloat ny, myfloat nz,
		    myfloat vx, myfloat vy, myfloat vz,
		    myfloat r, int s);

objectT create_square(myfloat cx, myfloat cy, myfloat cz,
		      myfloat nx, myfloat ny, myfloat nz,
		      myfloat vx, myfloat vy, myfloat vz,
		      myfloat r, int s);

objectT create_sphere(myfloat x, myfloat y, myfloat z,
		      myfloat nx, myfloat ny, myfloat nz,
		      myfloat r, int s);

lightT create_light(myfloat r, myfloat g, myfloat b,
		    myfloat x, myfloat y, myfloat z);

#endif