-
Notifications
You must be signed in to change notification settings - Fork 5
/
draw.h
59 lines (38 loc) · 1.46 KB
/
draw.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef DRAW_H__
#define DRAW_H__
#include <stdint.h>
#include <stdlib.h>
#include "types.h"
draw_spritefn_t draw_spritefn(int flags)
ATTR_DATA_ALIGNED;
void draw_handle_drawspritecmd(drawsprcmd_t* cmd)
ATTR_DATA_ALIGNED;
int draw_sprite(int x, int y, int w, int h,
int stride, const uint8_t* data, int flags)
ATTR_DATA_ALIGNED;
void draw_stretch_sprite(int x, int y, int sw, int sh,
int stride, const uint8_t* data, int flags, fixed_t scale)
ATTR_DATA_ALIGNED;
void draw_pivot_stretch_sprite(int x, int y, int sw, int sh,
int stride, const uint8_t* data, int flags, fixed_t scale)
ATTR_DATA_ALIGNED;
void draw_setScissor(int16_t x, int16_t y, int16_t w, int16_t h)
ATTR_DATA_ALIGNED;
int draw_clip(int x, int y, int w, int h, rect_t* cliprect)
ATTR_DATA_ALIGNED;
void init_tilemap(tilemap_t *tm, const dtilemap_t *dtm, uint8_t **reslist);
void set_tilemap_wrap(tilemap_t *tm, fixed_t wrapX, fixed_t wrapY);
int draw_handle_layercmd(drawtilelayerscmd_t* cmd)
ATTR_DATA_ALIGNED;
int draw_tilemap(tilemap_t *tm, int fpcamera_x, int fpcamera_y, int *cameraclip, void (*drawspr)(int l, void *p), void *sprp)
ATTR_DATA_ALIGNED;
void draw_dirtyrect(tilemap_t* tm, int x, int y, int w, int h)
ATTR_DATA_ALIGNED;
extern tilemap_t tm;
extern int window_canvas_x, window_canvas_y;
extern int32_t canvas_width, canvas_height;
extern uint32_t canvas_pitch, canvas_yaw;
extern int debug;
extern drawtilelayerscmd_t slave_drawtilelayerscmd
ATTR_CACHE_ALIGNED;
#endif