 |
PicoVGA
1.0-cmake
VGA/TV display on Raspberry Pico
|
Go to the documentation of this file.
11 #define DRAW_HWINTER 1 // 1=use hardware interpolator to draw images
34 #define CANVAS_1 3 // 1-bit pixels
35 #define CANVAS_PLANE2 4
36 #define CANVAS_ATTRIB8 5
147 const void* font,
int fontheight=8,
int scalex=1,
int scaley=1);
162 void DrawTextBg(
sCanvas* canvas,
const char* text,
int x,
int y, u8 col, u8 bgcol,
163 const void* font,
int fontheight=8,
int scalex=1,
int scaley=1);
217 const class cMat2Df* m, u8 mode, u8 color);
235 int tilebits,
int x,
int y,
int w,
int h,
const cMat2Df* mat, u8 horizon);
int h
Height.
Definition: canvas.h:45
void DrawCircle(sCanvas *canvas, int x0, int y0, int r, u8 col, u8 mask=0xff)
Draw circle.
Definition: canvas.cpp:837
void DrawLine(sCanvas *canvas, int x1, int y1, int x2, int y2, u8 col)
Draw a line.
Definition: canvas.cpp:533
void DrawFillCircle(sCanvas *canvas, int x0, int y0, int r, u8 col, u8 mask=0xff)
Draw filled circle.
Definition: canvas.cpp:708
2D Transformation Matrix
Definition: mat2d.h:262
int w
Width.
Definition: canvas.h:44
@ DRAWIMG_NOBORDER
No border (transparent border)
Definition: canvas.h:196
void DrawBlit(sCanvas *canvas, sCanvas *src, int xd, int yd, int xs, int ys, int w, int h, u8 col)
Draw image with transparency.
Definition: canvas.cpp:1480
@ DRAWING_COLOR
Color border.
Definition: canvas.h:198
@ DRAWIMG_PERSP
Perspective floor.
Definition: canvas.h:200
u8 format
Canvas format CANVAS_*.
Definition: canvas.h:47
void DrawImg(sCanvas *canvas, sCanvas *src, int xd, int yd, int xs, int ys, int w, int h)
Draw image (without transparency)
Definition: canvas.cpp:1002
void DrawRect(sCanvas *canvas, int x, int y, int w, int h, u8 col)
Draw rectangle.
Definition: canvas.cpp:16
void DrawImgMat(sCanvas *canvas, const sCanvas *src, int x, int y, int w, int h, const class cMat2Df *m, u8 mode, u8 color)
Draw 8-bit image with 2D transformation matrix.
@ DRAWIMG_CLAMP
Clamp image (use last pixel as border)
Definition: canvas.h:197
void DrawFrame(sCanvas *canvas, int x, int y, int w, int h, u8 col)
Draw frame of 1 pixel thickness.
Definition: canvas.cpp:342
int wb
Pitch (bytes between lines)
Definition: canvas.h:46
void DrawTileMap(sCanvas *canvas, const sCanvas *src, const u8 *map, int mapwbits, int maphbits, int tilebits, int x, int y, int w, int h, const cMat2Df *mat, u8 horizon)
Draw tile map using perspective projection.
Definition: canvas.cpp:2137
Canvas descriptor.
Definition: canvas.h:41
void DrawClear(sCanvas *canvas)
Clear canvas (fill with black color)
Definition: canvas.cpp:352
void DrawTextBg(sCanvas *canvas, const char *text, int x, int y, u8 col, u8 bgcol, const void *font, int fontheight=8, int scalex=1, int scaley=1)
Draw text with background color.
Definition: canvas.cpp:937
u8 * img2
Image data 2 (2nd plane of CANVAS_PLANE2, attributes of CANVAS_ATTRIB8)
Definition: canvas.h:43
@ DRAWIMG_WRAP
Wrap image.
Definition: canvas.h:195
void DrawImgLine(sCanvas *canvas, sCanvas *src, int xd, int yd, int xs, int ys, int wd, int ws)
Draw image line interpolated.
Definition: canvas.cpp:2294
@ DRAWIMG_TRANSP
Transparent image with key color.
Definition: canvas.h:199
void DrawPoint(sCanvas *canvas, int x, int y, u8 col)
Draw a pixel.
Definition: canvas.cpp:359
u8 * img
Image data.
Definition: canvas.h:42
void DrawText(sCanvas *canvas, const char *text, int x, int y, u8 col, const void *font, int fontheight=8, int scalex=1, int scaley=1)
Draw text (transparent background)
Definition: canvas.cpp:870