| Typedefs | |
| typedef short | fixed_t | 
| Functions | |
| void | cy3d_draw_background (char *buff, color_t sky_clr, color_t floor_clr) | 
| void | cy3d_draw_sky (char *buff, color_t clr) | 
| void | cy3d_draw_map_buffer (char *dst, char *src) | 
| void | cy3d_draw_map_buffer_xor (char *dst, char *src) | 
| void | cy3d_mirror_buffer (char *buff) | 
| void | cy3d_draw_tex_column (char *buff, int ray, fixed_t y, raster_t *tex, int index, int column, int shift, int *zbuff) | 
| void | cy3d_draw_sprite (char *buff, point_t p, raster_t *spr, int index, int *zbuff) | 
| void | cy3d_draw_wall (char *buff, point_t p1, point_t p2, raster_t *tex, int index, int shift, int *zbuff) | 
| raster_t* | cy3d_load (char *name) | 
| raster_t* | cy3d_load_tex (int index) | 
| raster_t* | cy3d_load_spr (int index) | 
| fixed_t | cy3d_sin (int direction) | 
| fixed_t | cy3d_cos (int direction) | 
| int | cy3d_sqrt (long value) | 
| point_t | cy3d_warp (point_t p, point_t camera, int direction) | 
| point_t | cy3d_move (point_t p, fixed_t distance, int direction) | 
| pos_t | cy3d_pos (point_t p) | 
| point_t | cy3d_point (pos_t p) | 
| fixed_t | cy3d_distance (point_t p1, point_t p2) | 
| long | cy3d_distance2 (point_t p1, point_t p2) | 
| Compounds | ||
| struct | point_t | A point on a plane, with the coordinates represented by fixed point (8.8) values | 
| struct | pos_t | A point on a plane, with the coordinates represented by integer values | 
| struct | raster_t | A collection of sprites or textures used by the CyOS 3D library | 
 These functions implement Wolfenstein3D/Ultima Underworld style graphics -- they simplify creation of your own 3D worlds. Please, pay special attention to the cy3d_draw_sprite() and cy3d_draw_wall() functions. 
| 
 | 
| 
Values with the fixed point ( 8.8 ). Values with the fixed point ( 8.8 ). The 8 high bits represent the integer. The 8 low bits represent a fraction. (i.e. 0x0F80 is 15.5). | 
| 
 | 
| 
Calculates the cosine of the angle. 
 
 
 | 
| 
 | 
| 
Retrieves the distance between two points. 
 
 
 | 
| 
 | 
| 
Retrieves the square of the distance between the two points. 
 
 
 | 
| 
 | 
| 
Fills the top and bottom of the screen with the specified colors. 
 
 | 
| 
 | 
| 
Copies from the source video buffer to the destination video buffer performing bitwise OR. 
 
 | 
| 
 | 
| 
Copies from the source video buffer to the destination video buffer performing bitwise XOR. 
 
 | 
| 
 | 
| 
Fills the top part of the screen with the specified color. 
 
 | 
| 
 | 
| 
Draws a sprite in the specified position in the 3D world. 
 
 
 | 
| 
 | 
| 
Draws a column of the texture. 
 
 | 
| 
 | 
| 
Draws wall in the 3D world. 
 
 
 | 
| 
 | 
| 
Loads the image collection with the specified name. 
 
 
 | 
| 
 | 
| 
Loads the sprite collection with the specified index in the application resource list. 
 
 
 | 
| 
 | 
| 
Loads the texture collection with the specified index in the application resource list. 
 
 
 | 
| 
 | 
| 
Copies the top part of the screen to the bottom part of the screen. 
 
 | 
| 
 | 
| 
Moves a point by a fixed distance in the specified direction. 
 
 | 
| 
 | 
| 
Converts the point's coordinates from integer values to fixed point (8.8) values. 
 
 | 
| 
 | 
| 
Converts the point's coordinates, from fixed point (8.8) values to integer values. 
 
 | 
| 
 | 
| 
Calculates sine of the angle. 
 
 
 | 
| 
 | 
| 
Retrieves square root of the value. 
 
 | 
| 
 | 
| 
Transforms the point's position in the 3D world to its position in the camera's coordinate system (i.e. 
 
 | 
| Copyright © 2001 Cybiko, Inc. All rights reserved. | More information... |