Merge commit 'origin/gallium-0.1' into gallium-0.2
[mesa.git] / src / gallium / state_trackers / g3dvl / vl_context.h
1 #ifndef vl_context_h
2 #define vl_context_h
3
4 #include "vl_types.h"
5
6 struct pipe_context;
7
8 #ifdef VL_INTERNAL
9 struct vlRender;
10 struct vlCSC;
11
12 struct vlContext
13 {
14 struct vlScreen *screen;
15 struct pipe_context *pipe;
16 unsigned int picture_width;
17 unsigned int picture_height;
18 enum vlFormat picture_format;
19 enum vlProfile profile;
20 enum vlEntryPoint entry_point;
21
22 void *raster;
23 void *dsa;
24 void *blend;
25
26 struct vlRender *render;
27 struct vlCSC *csc;
28 };
29 #endif
30
31 int vlCreateContext
32 (
33 struct vlScreen *screen,
34 struct pipe_context *pipe,
35 unsigned int picture_width,
36 unsigned int picture_height,
37 enum vlFormat picture_format,
38 enum vlProfile profile,
39 enum vlEntryPoint entry_point,
40 struct vlContext **context
41 );
42
43 int vlDestroyContext
44 (
45 struct vlContext *context
46 );
47
48 struct vlScreen* vlContextGetScreen
49 (
50 struct vlContext *context
51 );
52
53 struct pipe_context* vlGetPipeContext
54 (
55 struct vlContext *context
56 );
57
58 unsigned int vlGetPictureWidth
59 (
60 struct vlContext *context
61 );
62
63 unsigned int vlGetPictureHeight
64 (
65 struct vlContext *context
66 );
67
68 enum vlFormat vlGetPictureFormat
69 (
70 struct vlContext *context
71 );
72
73 #endif