diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-26 17:58:31 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-26 17:58:31 +0000 |
commit | 0656ff623ae406226308306079b56355662d58d4 (patch) | |
tree | d2f19eeff0e1186243fbbd5259c2b824efb99c65 /nuttx/include | |
parent | 9788287c7a17c9598e4a7c303c02704b3039e4ab (diff) | |
download | px4-nuttx-0656ff623ae406226308306079b56355662d58d4.tar.gz px4-nuttx-0656ff623ae406226308306079b56355662d58d4.tar.bz2 px4-nuttx-0656ff623ae406226308306079b56355662d58d4.zip |
Adding bitblit functions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1311 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/nxglib.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/nxglib.h b/nuttx/include/nuttx/nxglib.h index 5d5c509e6..b9269ed52 100644 --- a/nuttx/include/nuttx/nxglib.h +++ b/nuttx/include/nuttx/nxglib.h @@ -47,6 +47,35 @@ * Public Types ****************************************************************************/ +/* Graphics structures ******************************************************/ + +/* A given coordinate is limited to the screen height an width. If either + * of those values exceed 32,767 pixels, then the following will have to need + * to change: + */ + +typedef sint16 nxgl_coord_t; + +/* Describes a point on the display */ + +struct nxgl_point_s +{ + nxgl_coord_t x; /* Range: 0 to screen width - 1 */ + nxgl_coord_t y; /* Rnage: 0 to screen height - 1*/ +}; + +/* Describes a rectangle on the display */ + +struct nxgl_rect_s +{ + struct nxgl_point_t pt1; /* Upper, left-hand corner */ + struct nxgl_point_t pt2; /* Lower, right-hand corner */ +}; + +/**************************************************************************** + * Public Data + ****************************************************************************/ + #undef EXTERN #if defined(__cplusplus) # define EXTERN extern "C" |