📄 sma_swim.txt
字号:
Library : SMA_SWIM
Date : 06/05/2002
Purpose : Simple graphics drawing library with support for simple windows with frames, lines,
boxes, images w/ scaling, multiple fonts.
Notes : Library is portable to all frame buffer type devices. Display interface and memory
must be configured externally to this library. 256 and 64Kcolors are only supported
in this library.
ONLY 16-bit output formats are supported to the physical LCD display. For 256 color
images, where the frame buffer is stored as a series of pixels in 8-bit mode, the
output to the LCD display is assumed to be converted to 16-bits through the palette
table in the LCD controller. For 15- and 16-bit color modes, the data is raw to the
LCD display. (It may be possible to use a raw 8-bit data mode without palette
output.)
Issues : Fonts are not clipped - be sure to provide a window size big enough for at least
one character of a font size (vertically and horizontally), or the character will
overflow out of the window. Some error checking is not performed in the code, as
to keep the renderer fast - be careful with virtual/physical locations. Presently,
image scrolling is very inefficient, but can be improved by using 32-bit moves
instead of 8 or 16-bit moves.
Supporting packages:
swim_fonts - collection of files that contain font data and structures
Requires font data files and font header structure
swim_image - Image placement functions
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -