📄 tl_bmp.h
字号:
/*** thinlib (c) 2001 Matthew Conte (matt@conte.com)****** tl_bmp.h**** Bitmap object defines / prototypes**** $Id: $*/#ifndef _TL_BMP_H_#define _TL_BMP_H_#include "tl_types.h"/* a bitmap rectangle */typedef struct rect_s{ int16 x, y; uint16 w, h;} rect_t;typedef struct rgb_s{ int r, g, b;} rgb_t;typedef struct bitmap_s{ int width, height, pitch; int bpp; bool hardware; /* is data a hardware region? */ uint8 *data; /* protected */ uint8 *line[0]; /* will hold line pointers */} bitmap_t;extern void thin_bmp_clear(const bitmap_t *bitmap, uint8 color);extern bitmap_t *thin_bmp_create(int width, int height, int bpp, int overdraw);extern bitmap_t *thin_bmp_createhw(uint8 *addr, int width, int height, int bpp, int pitch);extern void thin_bmp_destroy(bitmap_t **bitmap);#endif /* !_TL_BMP_H_ *//*** $Log: $*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -