Tachyon (current)
Current Main Branch
|
Go to the source code of this file.
Data Structures | |
struct | asphere |
Macros | |
#define | XRES 352 |
#define | YRES 240 |
#define | NUMSP 12 |
#define | MYPI 3.1415926 |
#define | MYTPI 6.282 |
#define | MAXFRAMES 400 |
#define | MAXX 1.0 |
#define | MAXY 1.0 |
#define | MAXZ 1.0 |
#define | MINX -1.0 |
#define | MINY -1.0 |
#define | MINZ -1.0 |
#define | LOOP 200.0 |
#define | LOOP2 100.0 |
#define | RAD 6.28 |
#define | RFILE "outfile" |
Functions | |
int | rt_mynode (void) |
distributed memory parallel node rank More... | |
apiflt | randflt (void) |
void | initspheres (void) |
void | movesp (int frame) |
void | drawsp (SceneHandle scene) |
int | main (int argc, char **argv) |
Variables | |
asphere | sp [NUMSP] |
#define LOOP 200.0 |
Definition at line 35 of file animspheres2.c.
#define LOOP2 100.0 |
Definition at line 36 of file animspheres2.c.
#define MAXFRAMES 400 |
Definition at line 26 of file animspheres2.c.
#define MAXX 1.0 |
Definition at line 27 of file animspheres2.c.
#define MAXY 1.0 |
Definition at line 28 of file animspheres2.c.
#define MAXZ 1.0 |
Definition at line 29 of file animspheres2.c.
#define MINX -1.0 |
Definition at line 31 of file animspheres2.c.
#define MINY -1.0 |
Definition at line 32 of file animspheres2.c.
#define MINZ -1.0 |
Definition at line 33 of file animspheres2.c.
#define MYPI 3.1415926 |
Definition at line 21 of file animspheres2.c.
#define MYTPI 6.282 |
Definition at line 22 of file animspheres2.c.
Referenced by movesp().
#define NUMSP 12 |
Definition at line 19 of file animspheres2.c.
Referenced by drawsp(), and initspheres().
#define RAD 6.28 |
Definition at line 37 of file animspheres2.c.
#define RFILE "outfile" |
Definition at line 44 of file animspheres2.c.
Referenced by main().
#define XRES 352 |
Definition at line 17 of file animspheres2.c.
Referenced by main().
#define YRES 240 |
Definition at line 18 of file animspheres2.c.
Referenced by main().
void drawsp | ( | SceneHandle | scene | ) |
Definition at line 123 of file animspheres2.c.
References apitexture::ambient, apicolor::b, apitexture::col, apitexture::diffuse, apicolor::g, NUMSP, apitexture::opacity, apicolor::r, rt_plane(), rt_sphere(), rt_texture(), sp, apitexture::specular, apivector::x, apivector::y, and apivector::z.
Referenced by main().
void initspheres | ( | void | ) |
Definition at line 68 of file animspheres2.c.
References apitexture::ambient, apicolor::b, apitexture::col, asphere::ctr, apitexture::diffuse, asphere::dir, apicolor::g, NUMSP, apitexture::opacity, apicolor::r, asphere::rad, randflt(), apitexture::rot, apitexture::scale, sp, apitexture::specular, asphere::tex, apitexture::texturefunc, apivector::x, apivector::y, and apivector::z.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 152 of file animspheres2.c.
References apitexture::ambient, apicolor::b, apitexture::col, drawsp(), apicolor::g, initspheres(), MAXFRAMES, movesp(), apitexture::opacity, apicolor::r, RFILE, rt_camera_setup(), rt_initialize(), rt_light(), rt_mynode(), rt_newscene(), rt_outputfile(), rt_renderscene(), rt_resolution(), rt_texture(), rt_verbose(), apivector::x, XRES, apivector::y, YRES, and apivector::z.
void movesp | ( | int | frame | ) |
Definition at line 106 of file animspheres2.c.
References asphere::ctr, MAXFRAMES, MYTPI, sp, apivector::x, apivector::y, and apivector::z.
Referenced by main().
apiflt randflt | ( | void | ) |
Definition at line 57 of file animspheres2.c.
Referenced by initspheres().
int rt_mynode | ( | void | ) |
Definition at line 55 of file animspheres2.c.
Referenced by drawsp(), initspheres(), and movesp().