blit.h 766 B

1234567891011121314151617
  1. #ifndef BLIT_H
  2. #define BLIT_H
  3. #include <stdint.h>
  4. #include "machine.h"
  5. #define uint unsigned int
  6. int blit_vector32(int h, int w, int dy, int dx, Cell* bytes_c);
  7. //int blit_vector32(uint32_t* pixels, uint sx, uint sy, uint pitch, uint w, uint h, uint dx, uint dy);
  8. //int blit_vector1(void* pixels, uint sx, uint sy, uint pitch, uint w, uint h, uint dx, uint dy, uint color);
  9. int blit_vector1(COLOR_TYPE color, uint dy, uint dx, uint h, uint w, uint pitch, uint sy, uint sx, uint8_t* pixels);
  10. int blit_vector1_invert(COLOR_TYPE color, uint dy, uint dx, uint h, uint w, uint pitch, uint sy, uint sx, uint8_t* pixels);
  11. int blit_string1(COLOR_TYPE color, int h, int w, int y, int x, int cursor_pos, Cell* str_c, Cell* font);
  12. void init_blitter(COLOR_TYPE* fb);
  13. #endif