⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sprite_simpledolphins.c

📁 ucgu最新版本 4.14
💻 C
📖 第 1 页 / 共 5 页
字号:
/*********************************************************************
*                SEGGER MICROCONTROLLER SYSTEME GmbH                 *
*        Solutions for real time microcontroller applications        *
**********************************************************************
*                                                                    *
*        (c) 1996 - 2007  SEGGER Microcontroller Systeme GmbH        *
*                                                                    *
*        Internet: www.segger.com    Support:  support@segger.com    *
*                                                                    *
**********************************************************************

** emWin V4.14 - Graphical user interface for embedded applications **
emWin is protected by international copyright laws.   Knowledge of the
source code may not be used to write a similar product.  This file may
only be used in accordance with a license and should not be re-
distributed in any way. We appreciate your understanding and fairness.
----------------------------------------------------------------------
File        : SPRITE_SimpleDolphins.c
Purpose     : Shows how to use sprites
----------------------------------------------------------------------
*/

#include "GUI.h"
#include "LCDConf.h" /* Required for config check */

/*********************************************************************
*
*       Configuration check
*
**********************************************************************
*/
#if   (LCD_BITSPERPIXEL <= 8)
  #define REQUIRED_SIZE 14000
#elif (LCD_BITSPERPIXEL <= 16)
  #define REQUIRED_SIZE 28000
#else
  #define REQUIRED_SIZE 56000
#endif

#if (GUI_ALLOC_SIZE < REQUIRED_SIZE)
  #error This sample requires more RAM! Please increase GUI_ALLOC_SIZE in GUIConf.h!
#endif

/*********************************************************************
*
*       Types
*
**********************************************************************
*/
/*********************************************************************
*
*       SPRITE
*/
typedef struct {
  int xPos;                                 /* X-position of sprite */
  int yPos;                                 /* Y-position of sprite */
  int dx;                                   /* X-step */
  int dy;                                   /* Y-step */
  int NumImages;                            /* Number of images in apImages */
  GUI_CONST_STORAGE GUI_BITMAP ** apImages; /* Pointer to images */
  GUI_HSPRITE hSprite;                      /* Handle of sprite */
  int Index;                                /* Index of currently used bitmap */
} SPRITE;

/*********************************************************************
*
*       Static data
*
**********************************************************************
*/
/*********************************************************************
*
*       SeggerLogoLarge

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -