OpenCores
URL https://opencores.org/ocsvn/395_vgs/395_vgs/trunk

Subversion Repositories 395_vgs

[/] [395_vgs/] [trunk/] [src/] [PIC18/] [gpu_pic.h] - Blame information for rev 32

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 zuofu
//**************************************************************
2
//*G9 Impulse SDK - GPU.H
3
//*Provides essential GPU functionality for the PIC 16 and PIC18.
4
//*
5
//*
6
//**************************************************************
7
 
8
#ifndef _GPU_OPS_H
9
#define _GPU_OPS_H
10
 
11
//types
12
struct Point
13
{
14
        unsigned long  x;
15
        unsigned long  y;
16
};
17
 
18
struct Bitmap
19
{
20
        unsigned long   address;
21
        unsigned                width;
22
        unsigned                lines;
23
};
24
 
25
struct Sprite
26
{
27
        struct Bitmap   image;
28
        struct Point    position;
29
        char                    alpha;
30
};
31
 
32
typedef struct Bitmap Bitmap;
33
typedef struct Point Point;
34
typedef struct Sprite Sprite;
35
 
36
//prototypes
37
void drawtobackground ( Bitmap source );
38
void drawsprite (Sprite sprite);
39
void load_alphaOp( bool alphaOp);
40
void load_l_size(unsigned size);
41
void load_s_lines(unsigned lines);
42
void load_t_addr(unsigned long address);
43
void load_s_addr(unsigned long address);
44
 
45
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.