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)           | 
        
      
 
 
      
        
          | #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  | 
                     | 
           )  | 
           | 
        
      
 
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           | 
        
      
 
 
Function Documentation
      
        
          | BOOL WINAPI DllMain            | 
          ( | 
          HANDLE  | 
           hDLL,  | 
        
        
           | 
           | 
          DWORD  | 
           dwReason,  | 
        
        
           | 
           | 
          LPVOID  | 
           lpReserved |   | 
        
        
           | 
          ) | 
           |  |  | 
        
      
 
 
      
        
          | long _RenderImageProcess            | 
          ( | 
          char *  | 
           PrmList,  | 
        
        
           | 
           | 
          XIMAGE *  | 
           lpXimage |   | 
        
        
           | 
          ) | 
           |  |  | 
        
      
 
Definition at line 380 of file ATMOS.C.
References Renderer_LIGHT_tag::AnimatorID, CF, Renderer_LIGHT_tag::cone1, Renderer_LIGHT_tag::cone2, Renderer_LIGHT_tag::d, Renderer_LIGHT_tag::dc, Renderer_LIGHT_tag::dc_l, DOT, double, DUMMYL, FALSE, FARAWAY, L, max, min, normalize, ONE_256, Renderer_LIGHT_tag::p, PI, SPOTLIGHT, TRUE, Renderer_LIGHT_tag::type, VECCOPY, VECSCALE, and version.
 
 
      
        
          | 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 |   | 
        
        
           | 
          ) | 
           |  |  |