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>
42 #include "pipe/p_screen.h"
43 #include "pipe/p_context.h"
44 #include "pipe/p_inlines.h"
45 #include "util/u_memory.h"
46 #include "pipe/p_shader_tokens.h"
47 #include "cso_cache/cso_context.h"
48 #include "util/u_draw_quad.h"
49 #include "util/u_tile.h"
50 #include "tgsi/tgsi_text.h"
51 #include "tgsi/tgsi_dump.h"
53 #include "st_device.h"
54 #include "st_sample.h"
61 %array_class(unsigned char, ByteArray);
62 %array_class(int, IntArray);
63 %array_class(unsigned, UnsignedArray);
64 %array_class(float, FloatArray);
67 %rename(Device) st_device;
68 %rename(Context) st_context;
69 %rename(Texture) pipe_texture;
70 %rename(Surface) pipe_surface;
71 %rename(Buffer) st_buffer;
73 %rename(BlendColor) pipe_blend_color;
74 %rename(Blend) pipe_blend_state;
75 %rename(Clip) pipe_clip_state;
76 %rename(ConstantBuffer) pipe_constant_buffer;
77 %rename(Depth) pipe_depth_state;
78 %rename(Stencil) pipe_stencil_state;
79 %rename(Alpha) pipe_alpha_state;
80 %rename(DepthStencilAlpha) pipe_depth_stencil_alpha_state;
81 %rename(FormatBlock) pipe_format_block;
82 %rename(Framebuffer) pipe_framebuffer_state;
83 %rename(PolyStipple) pipe_poly_stipple;
84 %rename(Rasterizer) pipe_rasterizer_state;
85 %rename(Sampler) pipe_sampler_state;
86 %rename(Scissor) pipe_scissor_state;
87 %rename(Shader) pipe_shader_state;
88 %rename(VertexBuffer) pipe_vertex_buffer;
89 %rename(VertexElement) pipe_vertex_element;
90 %rename(Viewport) pipe_viewport_state;
93 %include "p_compiler.i"
94 %include "pipe/p_defines.h";
98 %include "p_context.i"
99 %include "p_texture.i"