diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-12-05 14:52:18 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-12-05 14:52:18 -0600 |
commit | 9a5cdd2c15b76c8e18370424fe0cc58c1f400f0d (patch) | |
tree | 93bfa0c4f617d8b1feb6f2733516efe9395a5d18 /apps/graphics/traveler/include | |
parent | e340b784cc39934935a5267a91f34e7443f2d21c (diff) | |
download | nuttx-9a5cdd2c15b76c8e18370424fe0cc58c1f400f0d.tar.gz nuttx-9a5cdd2c15b76c8e18370424fe0cc58c1f400f0d.tar.bz2 nuttx-9a5cdd2c15b76c8e18370424fe0cc58c1f400f0d.zip |
Add fourth of several ray cast/rendering files
Diffstat (limited to 'apps/graphics/traveler/include')
-rw-r--r-- | apps/graphics/traveler/include/trv_doors.h | 26 | ||||
-rw-r--r-- | apps/graphics/traveler/include/trv_raycast.h | 2 | ||||
-rw-r--r-- | apps/graphics/traveler/include/trv_rayprune.h | 8 |
3 files changed, 35 insertions, 1 deletions
diff --git a/apps/graphics/traveler/include/trv_doors.h b/apps/graphics/traveler/include/trv_doors.h index 9179e2979..33499a656 100644 --- a/apps/graphics/traveler/include/trv_doors.h +++ b/apps/graphics/traveler/include/trv_doors.h @@ -43,6 +43,32 @@ #include "trv_types.h" /**************************************************************************** + * Public Type Definitions + ****************************************************************************/ + +/* This structure describes the characteristics of the door which currently + * being opened. + */ + +struct trv_opendoor_s +{ + FAR struct trv_rect_data_s *rect; /* Points to the current door rectangle */ + uint8_t state; /* State of the door being opened */ + trv_coord_t zbottom; /* Z-Coordinate of the bottom of the door */ + trv_coord_t zdist; /* Distance which the door has moved */ + int16_t clock; /* This is clock which counts down the time + * remaining to keep the door open */ +}; + +/**************************************************************************** + * Public Data + ****************************************************************************/ + +/* This structure describes the door which is currently opening */ + +struct trv_opendoor_s g_opendoor; + +/**************************************************************************** * Public Function Prototypes ****************************************************************************/ diff --git a/apps/graphics/traveler/include/trv_raycast.h b/apps/graphics/traveler/include/trv_raycast.h index dbc53cf8f..c48d1fca0 100644 --- a/apps/graphics/traveler/include/trv_raycast.h +++ b/apps/graphics/traveler/include/trv_raycast.h @@ -163,7 +163,7 @@ extern struct trv_camera_s g_camera; * Public Function Prototypes ****************************************************************************/ -void trv_raycast(int16_t pitchangle, int16_t yawangle, int16_t screenyaw, +void trv_raycast(int16_t pitch, int16_t yaw, int16_t screenyaw, FAR struct trv_raycast_s *result); #endif /* __APPS_GRAPHICS_TRAVELER_INCLUDE_TRV_RAYCAST_H */ diff --git a/apps/graphics/traveler/include/trv_rayprune.h b/apps/graphics/traveler/include/trv_rayprune.h index 4dd0d40cb..ec35805e1 100644 --- a/apps/graphics/traveler/include/trv_rayprune.h +++ b/apps/graphics/traveler/include/trv_rayprune.h @@ -43,6 +43,14 @@ #include "trv_types.h" /**************************************************************************** + * Public Data + ****************************************************************************/ + +extern struct trv_rect_head_s g_ray_xplane; /* List of X=plane rectangles */ +extern struct trv_rect_head_s g_ray_yplane; /* List of Y=plane rectangles */ +extern struct trv_rect_head_s g_ray_zplane; /* List of Z=plane rectangles */ + +/**************************************************************************** * Public Function Prototypes ****************************************************************************/ |