1 | /*␊ |
2 | * graphics.h␊ |
3 | * ␊ |
4 | *␊ |
5 | * Created by fassl on 22.12.08.␊ |
6 | * Copyright 2008 __MyCompanyName__. All rights reserved.␊ |
7 | *␊ |
8 | */␊ |
9 | ␊ |
10 | #include "boot.h"␊ |
11 | #include "bootstruct.h"␊ |
12 | #include "graphic_utils.h"␊ |
13 | ␊ |
14 | ␊ |
15 | #ifndef __BOOT_GRAPHICS_H␊ |
16 | #define __BOOT_GRAPHICS_H␊ |
17 | ␊ |
18 | #define DEFAULT_SCREEN_WIDTH 1024␊ |
19 | #define DEFAULT_SCREEN_HEIGHT 768␊ |
20 | ␊ |
21 | extern int gDualLink;␊ |
22 | int loadPngImage(const char *filename, uint16_t *width, uint16_t *height, uint8_t **imageData);␊ |
23 | ␊ |
24 | unsigned long lookUpCLUTIndex( unsigned char index, unsigned char depth );␊ |
25 | ␊ |
26 | void drawColorRectangle( unsigned short x, unsigned short y, unsigned short width, unsigned short height, unsigned char colorIndex );␊ |
27 | void drawDataRectangle( unsigned short x, unsigned short y, unsigned short width, unsigned short height, unsigned char * data );␊ |
28 | int convertImage( unsigned short width, unsigned short height, const unsigned char *imageData, unsigned char **newImageData );␊ |
29 | ␊ |
30 | int initGraphicsMode ();␊ |
31 | ␊ |
32 | void drawCheckerBoard();␊ |
33 | ␊ |
34 | void blendImage(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t *data);␊ |
35 | ␊ |
36 | void drawCheckerBoard();␊ |
37 | void blendImage(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t *data);␊ |
38 | ␊ |
39 | int loadEmbeddedPngImage(uint8_t *pngData, int pngSize, uint16_t *width, uint16_t *height, uint8_t **imageData);␊ |
40 | ␊ |
41 | ␊ |
42 | char *getVBEInfoString();␊ |
43 | char *getVBEModeInfoString();␊ |
44 | void getGraphicModeParams(unsigned long params[]);␊ |
45 | ␊ |
46 | #endif /* !__BOOT_GRAPHICS_H */␊ |
47 | |