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

📄 mypic.h

📁 adc 3208 上面实现图片旋转的实例
💻 H
字号:
//#include "VGSDK.h"
#include    <stdio.h>
#include    <string.h>
#include    <ctype.h>
#include    <stdlib.h>

#ifndef _ADDTEST_
//#define _ADDTEST_
#endif

#define X_O 0       //40    0
//#define X_SZIZE 800     //800*511 or 640*480
//#define Y_SZIZE 511

#define COMM_MODE 0x4708
#define TRANS_MODE 0x670c
#define BLEND_MODE 0x4F0A

#define _TIE_CI 3 //draw 3 or 4 times for recovering back ground
#define _KEYNUMBER 0
#define _PIC_NUMBER 2 //所有图片数量
#define _DISP_PIC_NUM 2  //所有显示

#define _FLASH_ADD 0x2200000 //0x10000   //0x2200000   0x05000000+0

typedef struct All_PIC_add_def{
	U8  PIC_name;
	U16 *PIC_RAM_add;
	U32 PIC_TMEM_add;
	U16 PIC_cols;
	U16 PIC_lines;
	U16 PIC_size;
}ALL_PIC_address;// all pic of this game

typedef struct My_Pic_def{
	char P_disp; //1: diaplay, 0:not
	U8  P_id; //point to the ALL_PIC_address's PIC_name
	U8  P_key_id; //point to Key number of My_Key
	U16 *P_RAM_add;
	U32 P_TMEM_add;
	U16 P_cols;
	U16 P_lines;
	U16 P_x; //current position
	U16 P_y;
	U16 P_last0_x; //last
	U16 P_last0_y;
	U16 P_last1_x; //the one before last
	U16 P_last1_y;
	U16 P_r_x;  //used for recover back ground
	U16 P_r_y;  //
	U8  P_move; //2,1,0 for dubble buffer 
	U16 P_size;
}My_Pic;//displayed pics on screen

typedef struct My_Key_def{
	U16 K_x0; //range of this key
	U16 K_y0;
	U16 K_x1; //
	U16 K_y1;
	char K_press; //1-press,0-release,
	unsigned char K_bet;//bet count
}My_Key;//all keys on screen

⌨️ 快捷键说明

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