kolibrios/programs/develop/libraries/newlib/include/pixlib2.h
Sergey Semyonov (Serge) 5cd2096823 newlib: pixlib2 header
git-svn-id: svn://kolibrios.org@3379 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-03-15 20:56:41 +00:00

40 lines
857 B
C

#ifndef __PIXLIB2_H__
#define __PIXLIB2_H__
#include <stdint.h>
#define HW_BIT_BLIT (1<<0) /* BGRX blitter */
#define HW_TEX_BLIT (1<<1) /* stretch blit */
#define HW_VID_BLIT (1<<2) /* planar and packed video */
typedef struct
{
uint32_t handle;
uint8_t *data;
uint32_t width;
uint32_t height;
uint32_t pitch;
uint32_t max_width;
uint32_t max_height;
uint32_t flags;
}bitmap_t;
uint32_t init_pixlib(uint32_t flags);
void done_pixlib();
int create_bitmap(bitmap_t *bitmap);
int destroy_bitmap(bitmap_t *bitmap);
int lock_bitmap(bitmap_t *bitmap);
int resize_bitmap(bitmap_t *bitmap);
int blit_bitmap(bitmap_t * bitmap, int dst_x, int dst_y,
int w, int h, int src_x, int src_y);
#endif