LENS1.C File Reference

Go to the source code of this file.

Defines

#define frac(z)   fmod(z,1.0)
#define DIST(i, j)   sqrt((double)i * (double)i + (double)j * (double)j)

Functions

double DistFromHidingObject (int x, int y, double d, double *Zb, int border, int X, int Y)
double DistFromVisibleObject (int x, int y, double d, double *Zb, int border, int X, int Y)
double Grad (double x, double y1, double y2, int x1, int x2)
void DrawInBuffer (fullscreenbuffer *Screen, int Xmax, int Ymax, int x, int y, unsigned char v, double rr, double gg, double bb)
void DrawAApixel (double x, double y, double w, double h, double C, fullscreenbuffer *S, int X, int Y, double r, double g, double b)
long _RenderImageProcess (char *PrmList, XIMAGE *lpXimage)


Define Documentation

#define frac ( z   )     fmod(z,1.0)

Definition at line 122 of file LENS1.C.

#define DIST ( i,
 )     sqrt((double)i * (double)i + (double)j * (double)j)

Definition at line 176 of file LENS1.C.


Function Documentation

double DistFromHidingObject ( int  x,
int  y,
double  d,
double *  Zb,
int  border,
int  X,
int  Y 
)

Definition at line 65 of file LENS1.C.

References double, and Z.

double DistFromVisibleObject ( int  x,
int  y,
double  d,
double *  Zb,
int  border,
int  X,
int  Y 
)

Definition at line 82 of file LENS1.C.

References double, and Z.

double Grad ( double  x,
double  y1,
double  y2,
int  x1,
int  x2 
)

Definition at line 99 of file LENS1.C.

References double.

void DrawInBuffer ( fullscreenbuffer Screen,
int  Xmax,
int  Ymax,
int  x,
int  y,
unsigned char  v,
double  rr,
double  gg,
double  bb 
)

Definition at line 107 of file LENS1.C.

References double.

void DrawAApixel ( double  x,
double  y,
double  w,
double  h,
double  C,
fullscreenbuffer S,
int  X,
int  Y,
double  r,
double  g,
double  b 
)

Definition at line 124 of file LENS1.C.

References DrawInBuffer(), and frac.

long _RenderImageProcess ( char *  PrmList,
XIMAGE lpXimage 
)


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