Tachyon (current)
Current Main Branch
|
Go to the source code of this file.
Data Structures | |
struct | asphere |
Macros | |
#define | MAXFRAMES 400 |
#define | NUMSP 16 |
#define | XRES 352 |
#define | YRES 240 |
#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 |
Functions | |
int | rt_mynode (void) |
distributed memory parallel node rank More... | |
apiflt | randflt (void) |
void | initspheres (void) |
void | movesp (void) |
void | drawsp (SceneHandle scene) |
int | main (int argc, char **argv) |
Variables | |
asphere | sp [NUMSP] |
#define LOOP 200.0 |
Definition at line 46 of file animspheres.c.
#define LOOP2 100.0 |
Definition at line 47 of file animspheres.c.
#define MAXFRAMES 400 |
Definition at line 24 of file animspheres.c.
Referenced by main().
#define MAXX 1.0 |
Definition at line 38 of file animspheres.c.
Referenced by movesp().
#define MAXY 1.0 |
Definition at line 39 of file animspheres.c.
Referenced by movesp().
#define MAXZ 1.0 |
Definition at line 40 of file animspheres.c.
Referenced by movesp().
#define MINX -1.0 |
Definition at line 42 of file animspheres.c.
Referenced by movesp().
#define MINY -1.0 |
Definition at line 43 of file animspheres.c.
Referenced by movesp().
#define MINZ -1.0 |
Definition at line 44 of file animspheres.c.
Referenced by movesp().
#define NUMSP 16 |
Definition at line 27 of file animspheres.c.
Referenced by drawsp(), initspheres(), main(), and movesp().
#define RAD 6.28 |
Definition at line 48 of file animspheres.c.
#define XRES 352 |
Definition at line 35 of file animspheres.c.
Referenced by main().
#define YRES 240 |
Definition at line 36 of file animspheres.c.
void drawsp | ( | SceneHandle | scene | ) |
Definition at line 147 of file animspheres.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, asphere::voidtex, apivector::x, apivector::y, and apivector::z.
Referenced by main().
void initspheres | ( | void | ) |
Definition at line 71 of file animspheres.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 176 of file animspheres.c.
References apitexture::ambient, apicolor::b, apitexture::col, drawsp(), apicolor::g, glwin_create(), glwin_destroy(), glwin_draw_image(), glwin_get_wininfo(), glwin_get_winsize(), initspheres(), MAXFRAMES, movesp(), NUMSP, apitexture::opacity, apicolor::r, rt_camera_setup(), rt_deletescene(), rt_finalize(), rt_initialize(), rt_light(), rt_mynode(), rt_newscene(), rt_outputfile(), rt_rawimage_rgb24(), rt_renderscene(), rt_resolution(), rt_texture(), rt_verbose(), sp, apivector::x, XRES, apivector::y, and apivector::z.
void movesp | ( | void | ) |
Definition at line 107 of file animspheres.c.
References asphere::ctr, apitexture::ctr, asphere::dir, MAXX, MAXY, MAXZ, MINX, MINY, MINZ, NUMSP, sp, asphere::tex, apivector::x, apivector::y, and apivector::z.
Referenced by main().
apiflt randflt | ( | void | ) |
Definition at line 60 of file animspheres.c.
Referenced by initspheres().
int rt_mynode | ( | void | ) |
Definition at line 58 of file animspheres.c.
Referenced by drawsp(), initspheres(), main(), and movesp().