comparison engine/swigwrappers/python/fife.i.templ @ 112:98541d3b9220

* add some std types to swig wrapper (fife.i.templ) * remove the types in interfaces that used them * add possibility to list video modes to engine settings class
author spq@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 27 Jul 2008 13:36:03 +0000
parents 4a0efb7baf70
children 10a5f9e6c03f
comparison
equal deleted inserted replaced
111:abfe54ebae15 112:98541d3b9220
1 %module(directors="1") fife 1 %module(directors="1") fife
2 %include "std_string.i" 2 %include "std_string.i"
3 %include "std_vector.i" 3 %include "std_vector.i"
4 %include "std_pair.i"
5 %include "std_list.i"
6 %include "std_map.i"
7 %include "std_set.i"
4 %include "typemaps.i" 8 %include "typemaps.i"
5 %include "exception.i" 9 %include "exception.i"
6 10
7 /** 11 /**
8 * Some materials to understand exception handling: 12 * Some materials to understand exception handling:
25 %template(UintVector) vector<unsigned int>; 29 %template(UintVector) vector<unsigned int>;
26 %template(IntVector) vector<int>; 30 %template(IntVector) vector<int>;
27 %template(FloatVector) vector<float>; 31 %template(FloatVector) vector<float>;
28 %template(DoubleVector) vector<double>; 32 %template(DoubleVector) vector<double>;
29 %template(BoolVector) vector<bool>; 33 %template(BoolVector) vector<bool>;
34
35 %template(UintUintPair) pair<unsigned int, unsigned int>;
36 %template(UintUintPairVector) vector<std::pair<unsigned int, unsigned int> >;
30 }; 37 };
31 38
32 %{ 39 %{
33 #include "util/base/exception.h" 40 #include "util/base/exception.h"
34 static void handleDirectorException() { 41 static void handleDirectorException() {