1 /**************************************************************************
3 * Copyright
2008 Tungsten Graphics
, Inc.
, Cedar Park
, Texas.
6 * Permission is hereby granted
, free of charge
, to any person obtaining a
7 * copy of this software and associated documentation files
(the
8 * "Software"), to deal in the Software without restriction
, including
9 * without limitation the rights to use
, copy
, modify
, merge
, publish
,
10 * distribute
, sub license
, and
/or sell copies of the Software
, and to
11 * permit persons to whom the Software is furnished to do so
, subject to
12 * the following conditions
:
14 * The above copyright notice and this permission notice
(including the
15 * next paragraph
) shall be included in all copies or substantial portions
18 * THE SOFTWARE
IS PROVIDED
"AS IS", WITHOUT WARRANTY
OF ANY KIND
, EXPRESS
19 * OR IMPLIED
, INCLUDING BUT
NOT LIMITED
TO THE WARRANTIES
OF
20 * MERCHANTABILITY
, FITNESS
FOR A PARTICULAR PURPOSE
AND NON-INFRINGEMENT.
21 * IN NO EVENT SHALL TUNGSTEN GRAPHICS
AND/OR ITS SUPPLIERS BE LIABLE
FOR
22 * ANY CLAIM
, DAMAGES
OR OTHER LIABILITY
, WHETHER
IN AN ACTION
OF CONTRACT
,
23 * TORT
OR OTHERWISE, ARISING
FROM, OUT
OF OR IN CONNECTION
WITH THE
24 * SOFTWARE
OR THE
USE OR OTHER DEALINGS
IN THE SOFTWARE.
26 **************************************************************************/
30 * SWIG interface definion for Gallium types.
32 * @author Jose Fonseca
<jrfonseca@tungstengraphics.com
>
41 #include
"pipe/p_screen.h"
42 #include
"pipe/p_context.h"
43 #include
"pipe/p_shader_tokens.h"
44 #include
"os/os_stream.h"
45 #include
"util/u_inlines.h"
46 #include
"util/u_draw_quad.h"
47 #include
"util/u_tile.h"
48 #include
"util/u_math.h"
49 #include
"util/u_format.h"
50 #include
"util/u_dump.h"
51 #include
"util/u_memory.h"
52 #include
"util/u_sampler.h"
53 #include
"cso_cache/cso_context.h"
54 #include
"tgsi/tgsi_text.h"
55 #include
"tgsi/tgsi_dump.h"
57 #include
"st_device.h"
58 #include
"st_sample.h"
63 %include
"exception.i"
67 %array_class
(unsigned char
, ByteArray
);
68 %array_class
(int
, IntArray
);
69 %array_class
(unsigned
, UnsignedArray
);
70 %array_class
(float
, FloatArray
);
73 %rename
(Device
) st_device
;
74 %rename
(Context
) st_context
;
75 %rename
(Resource
) pipe_resource
;
76 %rename
(Surface
) st_surface
;
78 %rename
(BlendColor
) pipe_blend_color
;
79 %rename
(Blend
) pipe_blend_state
;
80 %rename
(Clip
) pipe_clip_state
;
81 %rename
(Depth
) pipe_depth_state
;
82 %rename
(Stencil
) pipe_stencil_state
;
83 %rename
(Alpha
) pipe_alpha_state
;
84 %rename
(DepthStencilAlpha
) pipe_depth_stencil_alpha_state
;
85 %rename
(Framebuffer
) pipe_framebuffer_state
;
86 %rename
(PolyStipple
) pipe_poly_stipple
;
87 %rename
(Rasterizer
) pipe_rasterizer_state
;
88 %rename
(Sampler
) pipe_sampler_state
;
89 %rename
(Scissor
) pipe_scissor_state
;
90 %rename
(Shader
) pipe_shader_state
;
91 %rename
(VertexBuffer
) pipe_vertex_buffer
;
92 %rename
(VertexElement
) pipe_vertex_element
;
93 %rename
(Viewport
) pipe_viewport_state
;
96 %include
"p_compiler.i"
97 %include
"p_defines.h"
100 %include
"p_device.i"
101 %include
"p_context.i"
102 %include
"p_texture.i"
105 %include
"u_format.i"