José Fonseca | 6410e94 | 2008-07-13 23:36:59 +0900 | [diff] [blame] | 1 | /************************************************************************** |
| 2 | * |
| 3 | * Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas. |
| 4 | * All Rights Reserved. |
| 5 | * |
| 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: |
| 13 | * |
| 14 | * The above copyright notice and this permission notice (including the |
| 15 | * next paragraph) shall be included in all copies or substantial portions |
| 16 | * of the Software. |
| 17 | * |
| 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. |
| 25 | * |
| 26 | **************************************************************************/ |
| 27 | |
| 28 | /** |
| 29 | * @file |
| 30 | * SWIG interface definion for Gallium types. |
| 31 | * |
| 32 | * @author Jose Fonseca <jrfonseca@tungstengraphics.com> |
| 33 | */ |
| 34 | |
| 35 | %module gallium; |
| 36 | |
| 37 | %{ |
| 38 | |
| 39 | #include <stdio.h> |
José Fonseca | 6410e94 | 2008-07-13 23:36:59 +0900 | [diff] [blame] | 40 | |
| 41 | #include "pipe/p_screen.h" |
| 42 | #include "pipe/p_context.h" |
| 43 | #include "pipe/p_inlines.h" |
Michal Krol | 7b0c459 | 2009-03-17 10:33:25 +0100 | [diff] [blame] | 44 | #include "pipe/p_shader_tokens.h" |
José Fonseca | 05a23e6 | 2008-07-14 10:45:40 +0900 | [diff] [blame] | 45 | #include "cso_cache/cso_context.h" |
Michal Krol | 7b0c459 | 2009-03-17 10:33:25 +0100 | [diff] [blame] | 46 | #include "util/u_draw_quad.h" |
| 47 | #include "util/u_tile.h" |
| 48 | #include "util/u_math.h" |
Zack Rusin | e9c6f01 | 2009-12-23 13:43:30 -0500 | [diff] [blame] | 49 | #include "util/u_format.h" |
Michal Krol | 7b0c459 | 2009-03-17 10:33:25 +0100 | [diff] [blame] | 50 | #include "util/u_memory.h" |
| 51 | #include "tgsi/tgsi_text.h" |
| 52 | #include "tgsi/tgsi_dump.h" |
José Fonseca | 6410e94 | 2008-07-13 23:36:59 +0900 | [diff] [blame] | 53 | |
| 54 | #include "st_device.h" |
José Fonseca | e74f94b | 2008-07-18 01:08:06 +0900 | [diff] [blame] | 55 | #include "st_sample.h" |
José Fonseca | 6410e94 | 2008-07-13 23:36:59 +0900 | [diff] [blame] | 56 | |
| 57 | %} |
| 58 | |
José Fonseca | 0ecaa37 | 2008-08-13 12:31:53 +0100 | [diff] [blame] | 59 | %include "typemaps.i" |
José Fonseca | bb84ce7 | 2009-03-26 11:29:59 +0000 | [diff] [blame] | 60 | %include "exception.i" |
José Fonseca | 2f153b5 | 2008-11-20 01:01:48 +0900 | [diff] [blame] | 61 | %include "cstring.i" |
| 62 | |
José Fonseca | 6410e94 | 2008-07-13 23:36:59 +0900 | [diff] [blame] | 63 | %include "carrays.i" |
José Fonseca | 3aea28b | 2008-07-14 22:26:40 +0900 | [diff] [blame] | 64 | %array_class(unsigned char, ByteArray); |
José Fonseca | 6410e94 | 2008-07-13 23:36:59 +0900 | [diff] [blame] | 65 | %array_class(int, IntArray); |
José Fonseca | b5f7dd0 | 2008-08-11 00:16:20 +0100 | [diff] [blame] | 66 | %array_class(unsigned, UnsignedArray); |
José Fonseca | 6410e94 | 2008-07-13 23:36:59 +0900 | [diff] [blame] | 67 | %array_class(float, FloatArray); |
| 68 | |
| 69 | |
| 70 | %rename(Device) st_device; |
| 71 | %rename(Context) st_context; |
| 72 | %rename(Texture) pipe_texture; |
José Fonseca | 28de69d | 2009-03-30 16:02:21 +0100 | [diff] [blame] | 73 | %rename(Surface) st_surface; |
José Fonseca | d18c2ee | 2009-03-26 11:19:15 +0000 | [diff] [blame] | 74 | %rename(Buffer) pipe_buffer; |
José Fonseca | d5ed158 | 2008-07-15 17:13:37 +0900 | [diff] [blame] | 75 | |
José Fonseca | 6410e94 | 2008-07-13 23:36:59 +0900 | [diff] [blame] | 76 | %rename(BlendColor) pipe_blend_color; |
| 77 | %rename(Blend) pipe_blend_state; |
| 78 | %rename(Clip) pipe_clip_state; |
| 79 | %rename(ConstantBuffer) pipe_constant_buffer; |
José Fonseca | e69e94d | 2008-08-11 16:57:50 +0100 | [diff] [blame] | 80 | %rename(Depth) pipe_depth_state; |
| 81 | %rename(Stencil) pipe_stencil_state; |
| 82 | %rename(Alpha) pipe_alpha_state; |
José Fonseca | 6410e94 | 2008-07-13 23:36:59 +0900 | [diff] [blame] | 83 | %rename(DepthStencilAlpha) pipe_depth_stencil_alpha_state; |
José Fonseca | 6410e94 | 2008-07-13 23:36:59 +0900 | [diff] [blame] | 84 | %rename(Framebuffer) pipe_framebuffer_state; |
| 85 | %rename(PolyStipple) pipe_poly_stipple; |
| 86 | %rename(Rasterizer) pipe_rasterizer_state; |
| 87 | %rename(Sampler) pipe_sampler_state; |
| 88 | %rename(Scissor) pipe_scissor_state; |
| 89 | %rename(Shader) pipe_shader_state; |
| 90 | %rename(VertexBuffer) pipe_vertex_buffer; |
| 91 | %rename(VertexElement) pipe_vertex_element; |
| 92 | %rename(Viewport) pipe_viewport_state; |
| 93 | |
José Fonseca | d5ed158 | 2008-07-15 17:13:37 +0900 | [diff] [blame] | 94 | |
José Fonseca | e08072c | 2008-08-11 17:08:53 +0100 | [diff] [blame] | 95 | %include "p_compiler.i" |
Michal Krol | 7b0c459 | 2009-03-17 10:33:25 +0100 | [diff] [blame] | 96 | %include "p_defines.h"; |
José Fonseca | e7f1ac3 | 2008-08-11 14:06:24 +0100 | [diff] [blame] | 97 | %include "p_format.i" |
José Fonseca | 6410e94 | 2008-07-13 23:36:59 +0900 | [diff] [blame] | 98 | |
José Fonseca | e7f1ac3 | 2008-08-11 14:06:24 +0100 | [diff] [blame] | 99 | %include "p_device.i" |
| 100 | %include "p_context.i" |
| 101 | %include "p_texture.i" |
| 102 | %include "p_state.i" |
José Fonseca | 05a23e6 | 2008-07-14 10:45:40 +0900 | [diff] [blame] | 103 | |