Main Page Data Structures File List Data Fields Globals Related Pages

# mp3v2.cpp.002.cpp File Reference

`#include <mem.h>`
`#include <malloc.h>`
`#include <stdio.h>`
`#include <math.h>`
`#include <conio.h>`
`#include <io.h>`
`#include <stdlib.h>`
`#include "misc.h"`
`#include "ztimer.h"`
`#include "vs1001.h"`
`#include "rtos.h"`
`#include "checkbios.h"`
`#include "gfxcore.h"`
`#include "gfxdriver.h"`
`#include "gfxutil.h"`
`#include "gfxfont.h"`
`#include "remote.h"`

Go to the source code of this file.

## Functions
void | GFX_LineX (Graphics *gfx, int x1, int y1, int x2, int y2)
| Draw a line.
void | gfxTest ()
void | main (int argc, char *argv[])
## Variables
Font * | font

## Function Documentation

void GFX_LineX | ( | Graphics * | gfx,
|  | int | x1,
|  | int | y1,
|  | int | x2,
|  | int | y2
| ) |

  | Draw a line. Parameters:
  gfx | Graphics context to use.
  x1, y1, x2, y2 | line coordinates.
Todo: yuck! slow spaghetti code! Perhaps we should do the right thing - fast assembly functions for horizontal and vertical lines, slow pure C functions for bresenham. Who needs lines on an mpeg player, anyway? Definition at line 51 of file mp3v2.cpp.002.cpp. References Graphics::bitmap, Bitmap::bmBits, swap(), and Bitmap::width. Referenced by gfxTest().

void gfxTest | ( |  | ) |

| Definition at line 144 of file mp3v2.cpp.002.cpp. References BM_Alloc(), BM_Clear(), BM_Load(), BM_Save(), GFX_Init(), GFX_LineX(), GFX_PrintfAt(), GFX_SetFont(), LCD_Update(), RC_GetKey(), RCKEY_REPEAT, ZTimer_Start(), and ZTimer_Stop().

void main | ( | int | argc,
|  | char * | argv[]
| ) |

| Definition at line 222 of file mp3v2.cpp.002.cpp. References CheckBIOS(), Font::firstChar, GFX_LoadFont(), gfxTest(), LCD_Done(), LCD_Init(), RC_Done(), RC_Init(), VS_Done(), and VS_Init().

## Variable Documentation

Font* font

| Definition at line 35 of file mp3v2.cpp.002.cpp. Referenced by GFX_FreeFont(), GFX_LoadFont(), GFX_SetFont(), GFX_TextWidth(), and printScratch().