ATMOS.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 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)
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 63 of file ATMOS.C.

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

Definition at line 64 of file ATMOS.C.

Referenced by _RenderImageProcess(), GetCommand(), and render().

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

Definition at line 65 of file ATMOS.C.

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

Definition at line 66 of file ATMOS.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 67 of file ATMOS.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 68 of file ATMOS.C.

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

Definition at line 69 of file ATMOS.C.

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

Definition at line 70 of file ATMOS.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 71 of file ATMOS.C.

#define ONE_256   3.90625e-3

Definition at line 76 of file ATMOS.C.

Referenced by _RenderImageProcess().


Function Documentation

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

Definition at line 41 of file ATMOS.C.

References DLL_PROCESS_ATTACH, DLL_PROCESS_DETACH, FALSE, and TRUE.

long _RenderImageProcess ( char *  PrmList,
XIMAGE lpXimage 
)

long _RenderGLexternal ( char *  PrmList,
XIMAGE lpXimage 
)

Definition at line 519 of file ATMOS.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 530 of file ATMOS.C.

References CALL_FREE, CALL_MALLOC, DLG_ATMOS, DlgProc(), FALSE, and version.


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