1 /* 2 * OpenBOR - http://www.LavaLit.com 3 * ----------------------------------------------------------------------- 4 * All rights reserved, see LICENSE in OpenBOR root for details. 5 * 6 * Copyright (c) 2004 - 2011 OpenBOR Team 7 */ 8 9 #ifndef SPRITEQ_H 10 #define SPRITEQ_H 11 12 13 #define SFX_NONE 0 14 #define SFX_REMAP 1 15 #define SFX_BLEND 2 16 #define SFX_SPECIAL 3 17 18 extern int pixelformat; 19 // Sprite queueing and sorting 20 void spriteq_add_sprite(int x, int y, int z, int id, s_drawmethod* pdrawmethod, int sortid); 21 void spriteq_add_frame(int x, int y, int z, s_sprite* frame, s_drawmethod* pdrawmethod, int sortid); 22 void spriteq_add_dot(int sx, int sy, int z, int colour, int alpha); 23 void spriteq_add_line(int sx, int sy, int ex, int ey, int z, int colour, int alpha); 24 void spriteq_add_box(int x, int y, int width, int height, int z, int colour, int alpha); 25 void spriteq_add_screen(int x, int y, int z, s_screen* ps, s_drawmethod* pdrawmethod, int sortid); 26 void spriteq_draw(s_screen *screen, int newonly, int minz, int maxz); 27 28 void spriteq_lock(); 29 void spriteq_unlock(); 30 int spriteq_islocked(); 31 32 void spriteq_clear(void); 33 34 35 #endif 36 37