FIREBALL.C File Reference

Go to the source code of this file.

Defines

#define RS   (1.0/(double)RAND_MAX)
#define CF(c)   ((double)(c)/(double)(255))
#define FC(c)   ((unsigned char)(c*255.0))
#define VECCOPY(a, b)   { b[0] = a[0]; b[1] = a[1]; b[2] = a[2]; }
#define INVERT(a)   { a[0] = -a[0]; a[1] = -a[1]; a[2] = -a[2]; }
#define VECSUB(a, b, c)   { c[0]=a[0]-b[0]; c[1]=a[1]-b[1]; c[2]=a[2]-b[2];}
#define VECSUM(a, b, c)   { c[0]=a[0]+b[0]; c[1]=a[1]+b[1]; c[2]=a[2]+b[2];}
#define VECSCALE(a, b, c)   { c[0]=(a)*b[0]; c[1]=(a)*b[1]; c[2]=(a)*b[2];}
#define DOT(a, b)   ( (a[0]*b[0]) + (a[1]*b[1]) + (a[2]*b[2]) )
#define CROSS(v1, v2, r)
#define ONE_256   3.90625e-3

Functions

BOOL WINAPI DllMain (HANDLE hDLL, DWORD dwReason, LPVOID lpReserved)
double NoiseFunc (vector p, double phase, double levels, int invert, XIMAGE *lpXimage)
long _RenderImageProcess (char *PrmList, XIMAGE *lpXimage)
long _RenderGLexternal (char *PrmList, XIMAGE *lpXimage)
BOOL CALLBACK DlgProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
char * _SetExternalParameters (char *Op, HWND hWnd, long ruler, char *name, X__MEMORY_MANAGER *lpEVI)


Define Documentation

#define RS   (1.0/(double)RAND_MAX)

Definition at line 81 of file FIREBALL.C.

#define CF (  )     ((double)(c)/(double)(255))

Definition at line 82 of file FIREBALL.C.

#define FC (  )     ((unsigned char)(c*255.0))

Definition at line 83 of file FIREBALL.C.

#define VECCOPY ( a,
 )     { b[0] = a[0]; b[1] = a[1]; b[2] = a[2]; }

Definition at line 84 of file FIREBALL.C.

#define INVERT (  )     { a[0] = -a[0]; a[1] = -a[1]; a[2] = -a[2]; }

Definition at line 85 of file FIREBALL.C.

#define VECSUB ( a,
b,
 )     { c[0]=a[0]-b[0]; c[1]=a[1]-b[1]; c[2]=a[2]-b[2];}

Definition at line 86 of file FIREBALL.C.

#define VECSUM ( a,
b,
 )     { c[0]=a[0]+b[0]; c[1]=a[1]+b[1]; c[2]=a[2]+b[2];}

Definition at line 87 of file FIREBALL.C.

#define VECSCALE ( a,
b,
 )     { c[0]=(a)*b[0]; c[1]=(a)*b[1]; c[2]=(a)*b[2];}

Definition at line 88 of file FIREBALL.C.

#define DOT ( a,
 )     ( (a[0]*b[0]) + (a[1]*b[1]) + (a[2]*b[2]) )

Definition at line 89 of file FIREBALL.C.

#define CROSS ( v1,
v2,
 ) 

Value:

{ \
                          r[0] = (v1[1]*v2[2]) - (v2[1]*v1[2]);  \
                          r[1] = (v1[2]*v2[0]) - (v1[0]*v2[2]);  \
                          r[2] = (v1[0]*v2[1]) - (v2[0]*v1[1]);  \
                        }

Definition at line 90 of file FIREBALL.C.

#define ONE_256   3.90625e-3

Definition at line 95 of file FIREBALL.C.


Function Documentation

BOOL WINAPI DllMain ( HANDLE  hDLL,
DWORD  dwReason,
LPVOID  lpReserved 
)

Definition at line 59 of file FIREBALL.C.

References DLL_PROCESS_ATTACH, DLL_PROCESS_DETACH, FALSE, and TRUE.

double NoiseFunc ( vector  p,
double  phase,
double  levels,
int  invert,
XIMAGE lpXimage 
)

Definition at line 190 of file FIREBALL.C.

References nNoise.

long _RenderImageProcess ( char *  PrmList,
XIMAGE lpXimage 
)

long _RenderGLexternal ( char *  PrmList,
XIMAGE lpXimage 
)

Definition at line 348 of file FIREBALL.C.

BOOL CALLBACK DlgProc ( HWND  hwnd,
UINT  msg,
WPARAM  wparam,
LPARAM  lparam 
)

Definition at line 55 of file 3DSCON.C.

char* _SetExternalParameters ( char *  Op,
HWND  hWnd,
long  ruler,
char *  name,
X__MEMORY_MANAGER lpEVI 
)

Definition at line 369 of file FIREBALL.C.

References CALL_FREE, CALL_MALLOC, DLG_FIREBALL, DlgProc(), FALSE, type, and version.


Generated on Sun Apr 27 14:20:16 2014 for OpenFX by  doxygen 1.5.6