Subversion Repositories Kolibri OS

Rev

Rev 3068 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3068 Rev 3248
Line -... Line 1...
-
 
1
#include "pixlib2.h"
-
 
2
 
1
#define BLACK_MAGIC_SOUND
3
#define BLACK_MAGIC_SOUND
2
#define BLACK_MAGIC_VIDEO
4
#define BLACK_MAGIC_VIDEO
Line 3... Line 5...
3
 
5
 
4
typedef unsigned int color_t;
6
typedef unsigned int color_t;
Line 5... Line -...
5
typedef unsigned int count_t;
-
 
6
 
-
 
7
typedef struct
-
 
8
{
-
 
9
    uint32_t    width;
-
 
10
    uint32_t    height;
-
 
11
    uint32_t    pitch;
-
 
12
    uint32_t    handle;
-
 
13
    uint8_t    *data;
-
 
14
}bitmap_t;
7
typedef unsigned int count_t;
Line 15... Line 8...
15
 
8
 
16
typedef struct render  render_t;
9
typedef struct render  render_t;
17
 
10
 
Line 175... Line 168...
175
    :"memory");
168
    :"memory");
176
};
169
};
177
 
170
 
Line 178... Line -...
178
 
-
 
179
 
-
 
180
 
-
 
181
#define HW_BIT_BLIT         (1<<0)      /* BGRX blitter             */
-
 
182
#define HW_TEX_BLIT         (1<<1)      /* stretch blit             */
-
 
183
#define HW_VID_BLIT         (1<<2)      /* planar and packed video  */
-
 
184
 
-
 
185
uint32_t InitPixlib(uint32_t flags);
-
 
186
 
-
 
187
int create_bitmap(bitmap_t *bitmap);
-
 
188
int lock_bitmap(bitmap_t *bitmap);
-
 
189
int resize_bitmap(bitmap_t *bitmap);
-
 
190
int blit_bitmap(bitmap_t *bitmap, int dst_x, int dst_y,
-
 
191
                int w, int h);
-
 
192
 
171
 
-
 
172
int init_fontlib();
-
 
173
int draw_text(bitmap_t *winbitmap, int face, char *text, int x, int y, int color);
-
 
174
int draw_text_ext(bitmap_t *winbitmap, int face, char *text, rect_t *rc, int color);
-
 
175
char *get_moviefile();