03d5ee405a4d04a6989362a08620be0851328677
[mesa.git] / src / gallium / include / state_tracker / drisw_api.h
1 #ifndef _DRISW_API_H_
2 #define _DRISW_API_H_
3
4 #include "pipe/p_compiler.h"
5
6 struct pipe_screen;
7 struct dri_drawable;
8
9 /**
10 * This callback struct is intended for the winsys to call the loader.
11 */
12 struct drisw_loader_funcs
13 {
14 void (*get_image) (struct dri_drawable *dri_drawable,
15 int x, int y, unsigned width, unsigned height, unsigned stride,
16 void *data);
17 void (*put_image) (struct dri_drawable *dri_drawable,
18 void *data, unsigned width, unsigned height);
19 void (*put_image2) (struct dri_drawable *dri_drawable,
20 void *data, int x, int y, unsigned width, unsigned height, unsigned stride);
21 };
22
23 #endif