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 | #ifndef __IOGRAPHICS_H␊ |
11 | #define __IOGRAPHICS_H␊ |
12 | ␊ |
13 | #include <vbe.h>␊ |
14 | ␊ |
15 | char * __decodeRLE( const void * rleData, int rleBlocks, int outBytes );␊ |
16 | ␊ |
17 | void __drawColorRectangle( unsigned short x, unsigned short y, unsigned short width, unsigned short height, unsigned char colorIndex );␊ |
18 | void __drawDataRectangle( unsigned short x,␊ |
19 | unsigned short y,␊ |
20 | unsigned short width,␊ |
21 | unsigned short height,␊ |
22 | unsigned char * data );␊ |
23 | int␊ |
24 | __convertImage( unsigned short width,␊ |
25 | unsigned short height,␊ |
26 | const unsigned char *imageData,␊ |
27 | unsigned char **newImageData );␊ |
28 | ␊ |
29 | ␊ |
30 | int __setVESAGraphicsMode( unsigned short width, unsigned short height, unsigned char bitsPerPixel);␊ |
31 | ␊ |
32 | int __getNumberArrayFromProperty( const char * propKey,␊ |
33 | unsigned long numbers[],␊ |
34 | unsigned long maxArrayCount );␊ |
35 | ␊ |
36 | ␊ |
37 | unsigned short␊ |
38 | __getVESAModeWithProperties( unsigned short width,␊ |
39 | unsigned short height,␊ |
40 | unsigned char bitsPerPixel,␊ |
41 | unsigned short attributesSet,␊ |
42 | unsigned short attributesClear,␊ |
43 | VBEModeInfoBlock * outModeInfo,␊ |
44 | unsigned short * vesaVersion );␊ |
45 | ␊ |
46 | void␊ |
47 | __setVideoMode( int mode);␊ |
48 | ␊ |
49 | #endif /* !__IOGRAPHICS_H */␊ |
50 | |