Adding bitblit functions

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1311 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2008-11-26 17:58:31 +00:00
parent ed1cbc277f
commit cd5534f178
4 changed files with 432 additions and 0 deletions
+29
View File
@@ -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"