|
Trace Engine
A Raycaster Engine in C
|
Macros | |
| #define | VIEWPORT_WIDTH 960 |
| #define | VIEWPORT_HEIGHT 640 |
| #define | VIEWPORT_X_OFFSET 10 |
| #define | VIEWPORT_Y_OFFSET 10 |
These macros define the size and the position of the viewport. The viewport is the picture captured by the camera.
| #define VIEWPORT_HEIGHT 640 |
The height of the picture captured byt the camera
| #define VIEWPORT_WIDTH 960 |
The width of the picture captured byt the camera
| #define VIEWPORT_X_OFFSET 10 |
The horizontal offset of the picture captured byt the camera from the top-left corner
| #define VIEWPORT_Y_OFFSET 10 |
The vertical offset of the picture captured byt the camera from the top-left corner