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) |
#define DIST |
( |
i, |
|
|
j |
|
) |
sqrt((double)i * (double)i + (double)j * (double)j) |
Function Documentation
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 | |
|
) |
| | |
Definition at line 487 of file LENS1.C.
References angle, DIST, DistFromHidingObject(), DistFromVisibleObject(), double, DrawAApixel(), DUMMYL, FALSE, Grad(), TransformIntoView(), TRUE, type, X__Free, and X__Malloc.