diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-12-05 11:24:10 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-12-05 11:24:10 -0600 |
commit | 6805d79e0e3b9db70c88d0ccae4d2446159b4009 (patch) | |
tree | 502652ad9515bf57be9fe8625b8492db6e6357bb /apps/graphics/traveler/include | |
parent | 94809c57e5ec9a9441df03014857b737b4b02bda (diff) | |
download | nuttx-6805d79e0e3b9db70c88d0ccae4d2446159b4009.tar.gz nuttx-6805d79e0e3b9db70c88d0ccae4d2446159b4009.tar.bz2 nuttx-6805d79e0e3b9db70c88d0ccae4d2446159b4009.zip |
Add second of several ray cast/rendering files
Diffstat (limited to 'apps/graphics/traveler/include')
-rw-r--r-- | apps/graphics/traveler/include/trv_plane.h | 16 | ||||
-rw-r--r-- | apps/graphics/traveler/include/trv_rayavoid.h | 12 |
2 files changed, 22 insertions, 6 deletions
diff --git a/apps/graphics/traveler/include/trv_plane.h b/apps/graphics/traveler/include/trv_plane.h index 60da752d7..b6f718bf9 100644 --- a/apps/graphics/traveler/include/trv_plane.h +++ b/apps/graphics/traveler/include/trv_plane.h @@ -119,6 +119,22 @@ struct trv_planefile_header_s #define SIZEOF_TRVPLANEFILEHEADER_T 6 /**************************************************************************** + * Public Data + ****************************************************************************/ + +/* The is the world!!! The world is described by lists of rectangles, one + * for each of the X, Y, and Z planes. + */ + +extern struct trv_rect_head_s g_xplane; /* list of X=plane rectangles */ +extern struct trv_rect_head_s g_yplane; /* list of Y=plane rectangles */ +extern struct trv_rect_head_s g_zplane; /* list of Z=plane rectangles */ + +/* "Deallocated" planes are retained in a free list */ + +extern struct trv_rect_list_s *g_rect_freelist; + +/**************************************************************************** * Public Function Prototypes ****************************************************************************/ diff --git a/apps/graphics/traveler/include/trv_rayavoid.h b/apps/graphics/traveler/include/trv_rayavoid.h index 7993cd111..08214cbc8 100644 --- a/apps/graphics/traveler/include/trv_rayavoid.h +++ b/apps/graphics/traveler/include/trv_rayavoid.h @@ -63,11 +63,11 @@ trv_coord_t trv_rayclip_player_ymotion(FAR struct trv_camera_s *pov, trv_coord_t height); trv_coord_t trv_ray_adjust_zpos(FAR struct trv_camera_s *pov, trv_coord_t height); -FAR struct trv_rect_data_s *trv_test_xplane(FAR struct trv_camera_s *pov, - trv_coord_t dist, int16_t yaw, - trv_coord_t height); -FAR struct trv_rect_data_s *trv_test_yplane(FAR struct trv_camera_s *pov, - trv_coord_t dist, int16_t yaw, - trv_coord_t height); +FAR struct trv_rect_data_s *trv_ray_test_xplane(FAR struct trv_camera_s *pov, + trv_coord_t dist, int16_t yaw, + trv_coord_t height); +FAR struct trv_rect_data_s *trv_ray_test_yplane(FAR struct trv_camera_s *pov, + trv_coord_t dist, int16_t yaw, + trv_coord_t height); #endif /* __APPS_GRAPHICS_TRAVELER_INCLUDE_TRV_RAYAVOID_H */ |