Add last of several ray cast/rendering files

This commit is contained in:
Gregory Nutt 2014-12-05 16:31:47 -06:00
parent e9088a308a
commit 955546b67e
3 changed files with 1400 additions and 1 deletions

View File

@ -48,7 +48,7 @@ STACKSIZE = 2048
ASRCS =
CSRCS = trv_bitmaps.c trv_color.c trv_doors.c trv_graphics.c trv_input.c
CSRCS += trv_mem.c trv_plane.c trv_pov.c trv_rayavoid.c trv_raycast.c
CSRCS += trv_raycntl.c trv_rayrend.c trv_trigtbl.c
CSRCS += trv_raycntl.c trv_rayprune.c trv_rayrend.c trv_trigtbl.c
MAINSRC = trv_main.c
ifeq ($(CONFIG_NX),y)

View File

@ -42,6 +42,7 @@
****************************************************************************/
#include "trv_types.h"
#include <stdio.h>
/****************************************************************************
* Pre-processor Definitions
@ -138,4 +139,23 @@ extern struct trv_rect_list_s *g_rect_freelist;
* Public Function Prototypes
****************************************************************************/
uint8_t trv_initialize_planes(void);
void trv_release_planes(void);
uint8_t trv_load_planefile(FAR const char *wldfile);
uint8_t trv_load_planes(FAR FILE *fp);
uint8_t trv_save_planes(const char *wldfile);
FAR struct trv_rect_list_s *trv_new_plance(void);
void trv_add_plane(FAR struct trv_rect_list_s *rect,
FAR struct trv_rect_head_s *list);
void trv_merge_planelists(FAR struct trv_rect_head_s *outlist,
FAR struct trv_rect_head_s *inlist);
void trv_remove_plane(FAR struct trv_rect_list_s *rect,
FAR struct trv_rect_head_s *list);
void trv_move_plane(FAR struct trv_rect_list_s *rect,
FAR struct trv_rect_head_s *destlist,
FAR struct trv_rect_head_s *srclist);
struct trv_rect_list_s *trv_find_plane(trv_coord_t h, trv_coord_t v,
trv_coord_t plane,
FAR struct trv_rect_head_s *list);
#endif /* __APPS_GRAPHICS_TRAVELER_INCLUDE_TRV_PLANE_H */

File diff suppressed because it is too large Load Diff