blob: 63d3bf306209aca01529c82b74e94fd1430aac81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef __lib_gdi_accel_h
#define __lib_gdi_accel_h
struct gSurface;
class eRect;
class ePoint;
class gAccel
{
public:
static gAccel* getInstance();
gAccel();
~gAccel();
void setAccelMemorySpace(void *addr, int phys_addr, int size);
int blit(gSurface *dst, const gSurface *src, const ePoint &p, const eRect &area, int flags);
int fill(gSurface *dst, const eRect &area, unsigned long col);
int accelAlloc(void *&addr, int &phys_addr, int size);
void accelFree(int phys_addr);
private:
void *m_accel_addr;
int m_accel_phys_addr;
int m_accel_size; // in blocks
int *m_accel_allocation;
static gAccel *instance;
};
#endif
|