Tachyon (current)  Current Main Branch
Data Structures | Macros | Functions | Variables
animspheres2.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "tachyon.h"

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]
 

Macro Definition Documentation

◆ LOOP

#define LOOP   200.0

Definition at line 35 of file animspheres2.c.

◆ LOOP2

#define LOOP2   100.0

Definition at line 36 of file animspheres2.c.

◆ MAXFRAMES

#define MAXFRAMES   400

Definition at line 26 of file animspheres2.c.

Referenced by main(), and movesp().

◆ MAXX

#define MAXX   1.0

Definition at line 27 of file animspheres2.c.

◆ MAXY

#define MAXY   1.0

Definition at line 28 of file animspheres2.c.

◆ MAXZ

#define MAXZ   1.0

Definition at line 29 of file animspheres2.c.

◆ MINX

#define MINX   -1.0

Definition at line 31 of file animspheres2.c.

◆ MINY

#define MINY   -1.0

Definition at line 32 of file animspheres2.c.

◆ MINZ

#define MINZ   -1.0

Definition at line 33 of file animspheres2.c.

◆ MYPI

#define MYPI   3.1415926

Definition at line 21 of file animspheres2.c.

◆ MYTPI

#define MYTPI   6.282

Definition at line 22 of file animspheres2.c.

Referenced by movesp().

◆ NUMSP

#define NUMSP   12

Definition at line 19 of file animspheres2.c.

Referenced by drawsp(), and initspheres().

◆ RAD

#define RAD   6.28

Definition at line 37 of file animspheres2.c.

◆ RFILE

#define RFILE   "outfile"

Definition at line 44 of file animspheres2.c.

Referenced by main().

◆ XRES

#define XRES   352

Definition at line 17 of file animspheres2.c.

Referenced by main().

◆ YRES

#define YRES   240

Definition at line 18 of file animspheres2.c.

Referenced by main().

Function Documentation

◆ drawsp()

void drawsp ( SceneHandle  scene)

◆ initspheres()

void initspheres ( void  )

◆ main()

int main ( int  argc,
char **  argv 
)

◆ movesp()

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().

◆ randflt()

apiflt randflt ( void  )

Definition at line 57 of file animspheres2.c.

Referenced by initspheres().

◆ rt_mynode()

int rt_mynode ( void  )

distributed memory parallel node rank

Definition at line 49 of file api.c.

Referenced by main().

Variable Documentation

◆ sp

Definition at line 55 of file animspheres2.c.

Referenced by drawsp(), initspheres(), and movesp().