diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-12-06 09:53:00 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-12-06 09:53:00 -0600 |
commit | cdb12002bb2b78ef1458509921475448c9ff92a3 (patch) | |
tree | 814621c7f0cc8210393d674194adeedb28d65a7e /apps/graphics/traveler/src/trv_plane.c | |
parent | a07253bc5d925156e77bd5a0e149ecb4066ad2a8 (diff) | |
download | px4-nuttx-cdb12002bb2b78ef1458509921475448c9ff92a3.tar.gz px4-nuttx-cdb12002bb2b78ef1458509921475448c9ff92a3.tar.bz2 px4-nuttx-cdb12002bb2b78ef1458509921475448c9ff92a3.zip |
Add the second of several world creation files
Diffstat (limited to 'apps/graphics/traveler/src/trv_plane.c')
-rw-r--r-- | apps/graphics/traveler/src/trv_plane.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/apps/graphics/traveler/src/trv_plane.c b/apps/graphics/traveler/src/trv_plane.c index 58d36e90a..7337c482d 100644 --- a/apps/graphics/traveler/src/trv_plane.c +++ b/apps/graphics/traveler/src/trv_plane.c @@ -1,5 +1,5 @@ /******************************************************************************* - * apps/graphics/traveler/src/trv_bitmaps.c + * apps/graphics/traveler/src/trv_plane.c * This file contains the global variable declarations needed by the world * plane management logic. * @@ -63,6 +63,26 @@ struct trv_rect_list_s *g_rect_freelist; ****************************************************************************/ /**************************************************************************** + * Name: trv_initialize_planes + * + * Description: + * + ***************************************************************************/ + +int trv_initialize_planes(void) +{ + g_xplane.head = NULL; + g_xplane.tail = NULL; + g_yplane.head = NULL; + g_yplane.tail = NULL; + g_zplane.head = NULL; + g_zplane.tail = NULL; + g_rect_freelist = NULL; + + return OK; +} + +/**************************************************************************** * Name: trv_add_plane * * Description: @@ -221,7 +241,7 @@ void trv_merge_planelists(FAR struct trv_rect_head_s *outlist, if (!outrect) { /* No rectangle with plane larger than the one to be added - * was found in the list. The inrect goes at the end of + * was found in the list. The 'inrect' goes at the end of * the list. */ |