|
11 | 11 | #include "luabind/return_reference_to_policy.hpp" |
12 | 12 |
|
13 | 13 | using namespace luabind; |
| 14 | +using namespace luabind::policy; |
14 | 15 |
|
15 | 16 | #ifdef DEBUG |
16 | 17 | #define MDB Memory.dbg_check() |
@@ -132,48 +133,48 @@ void CResourceManager::LS_Load () |
132 | 133 |
|
133 | 134 |
|
134 | 135 | class_<adopt_dx10sampler>("_dx10sampler") |
135 | | - //.def("texture", &adopt_sampler::_texture ,return_reference_to(_1)) |
136 | | - //.def("project", &adopt_sampler::_projective ,return_reference_to(_1)) |
137 | | - //.def("clamp", &adopt_sampler::_clamp ,return_reference_to(_1)) |
138 | | - //.def("wrap", &adopt_sampler::_wrap ,return_reference_to(_1)) |
139 | | - //.def("mirror", &adopt_sampler::_mirror ,return_reference_to(_1)) |
140 | | - //.def("f_anisotropic", &adopt_sampler::_f_anisotropic ,return_reference_to(_1)) |
141 | | - //.def("f_trilinear", &adopt_sampler::_f_trilinear ,return_reference_to(_1)) |
142 | | - //.def("f_bilinear", &adopt_sampler::_f_bilinear ,return_reference_to(_1)) |
143 | | - //.def("f_linear", &adopt_sampler::_f_linear ,return_reference_to(_1)) |
144 | | - //.def("f_none", &adopt_sampler::_f_none ,return_reference_to(_1)) |
145 | | - //.def("fmin_none", &adopt_sampler::_fmin_none ,return_reference_to(_1)) |
146 | | - //.def("fmin_point", &adopt_sampler::_fmin_point ,return_reference_to(_1)) |
147 | | - //.def("fmin_linear", &adopt_sampler::_fmin_linear ,return_reference_to(_1)) |
148 | | - //.def("fmin_aniso", &adopt_sampler::_fmin_aniso ,return_reference_to(_1)) |
149 | | - //.def("fmip_none", &adopt_sampler::_fmip_none ,return_reference_to(_1)) |
150 | | - //.def("fmip_point", &adopt_sampler::_fmip_point ,return_reference_to(_1)) |
151 | | - //.def("fmip_linear", &adopt_sampler::_fmip_linear ,return_reference_to(_1)) |
152 | | - //.def("fmag_none", &adopt_sampler::_fmag_none ,return_reference_to(_1)) |
153 | | - //.def("fmag_point", &adopt_sampler::_fmag_point ,return_reference_to(_1)) |
154 | | - //.def("fmag_linear", &adopt_sampler::_fmag_linear ,return_reference_to(_1)) |
| 136 | + //.def("texture", &adopt_sampler::_texture ,return_reference_to<1>()) |
| 137 | + //.def("project", &adopt_sampler::_projective ,return_reference_to<1>()) |
| 138 | + //.def("clamp", &adopt_sampler::_clamp ,return_reference_to<1>()) |
| 139 | + //.def("wrap", &adopt_sampler::_wrap ,return_reference_to<1>()) |
| 140 | + //.def("mirror", &adopt_sampler::_mirror ,return_reference_to<1>()) |
| 141 | + //.def("f_anisotropic", &adopt_sampler::_f_anisotropic ,return_reference_to<1>()) |
| 142 | + //.def("f_trilinear", &adopt_sampler::_f_trilinear ,return_reference_to<1>()) |
| 143 | + //.def("f_bilinear", &adopt_sampler::_f_bilinear ,return_reference_to<1>()) |
| 144 | + //.def("f_linear", &adopt_sampler::_f_linear ,return_reference_to<1>()) |
| 145 | + //.def("f_none", &adopt_sampler::_f_none ,return_reference_to<1>()) |
| 146 | + //.def("fmin_none", &adopt_sampler::_fmin_none ,return_reference_to<1>()) |
| 147 | + //.def("fmin_point", &adopt_sampler::_fmin_point ,return_reference_to<1>()) |
| 148 | + //.def("fmin_linear", &adopt_sampler::_fmin_linear ,return_reference_to<1>()) |
| 149 | + //.def("fmin_aniso", &adopt_sampler::_fmin_aniso ,return_reference_to<1>()) |
| 150 | + //.def("fmip_none", &adopt_sampler::_fmip_none ,return_reference_to<1>()) |
| 151 | + //.def("fmip_point", &adopt_sampler::_fmip_point ,return_reference_to<1>()) |
| 152 | + //.def("fmip_linear", &adopt_sampler::_fmip_linear ,return_reference_to<1>()) |
| 153 | + //.def("fmag_none", &adopt_sampler::_fmag_none ,return_reference_to<1>()) |
| 154 | + //.def("fmag_point", &adopt_sampler::_fmag_point ,return_reference_to<1>()) |
| 155 | + //.def("fmag_linear", &adopt_sampler::_fmag_linear ,return_reference_to<1>()) |
155 | 156 | , |
156 | 157 |
|
157 | 158 | class_<adopt_compiler>("_compiler") |
158 | 159 | .def( constructor<const adopt_compiler&>()) |
159 | | - .def("begin", &adopt_compiler::_pass ,return_reference_to(_1)) |
160 | | - .def("begin", &adopt_compiler::_passgs ,return_reference_to(_1)) |
161 | | - .def("sorting", &adopt_compiler::_options ,return_reference_to(_1)) |
162 | | - .def("emissive", &adopt_compiler::_o_emissive ,return_reference_to(_1)) |
163 | | - .def("distort", &adopt_compiler::_o_distort ,return_reference_to(_1)) |
164 | | - .def("wmark", &adopt_compiler::_o_wmark ,return_reference_to(_1)) |
165 | | - .def("fog", &adopt_compiler::_fog ,return_reference_to(_1)) |
166 | | - .def("zb", &adopt_compiler::_ZB ,return_reference_to(_1)) |
167 | | - .def("blend", &adopt_compiler::_blend ,return_reference_to(_1)) |
168 | | - .def("aref", &adopt_compiler::_aref ,return_reference_to(_1)) |
| 160 | + .def("begin", &adopt_compiler::_pass ,return_reference_to<1>()) |
| 161 | + .def("begin", &adopt_compiler::_passgs ,return_reference_to<1>()) |
| 162 | + .def("sorting", &adopt_compiler::_options ,return_reference_to<1>()) |
| 163 | + .def("emissive", &adopt_compiler::_o_emissive ,return_reference_to<1>()) |
| 164 | + .def("distort", &adopt_compiler::_o_distort ,return_reference_to<1>()) |
| 165 | + .def("wmark", &adopt_compiler::_o_wmark ,return_reference_to<1>()) |
| 166 | + .def("fog", &adopt_compiler::_fog ,return_reference_to<1>()) |
| 167 | + .def("zb", &adopt_compiler::_ZB ,return_reference_to<1>()) |
| 168 | + .def("blend", &adopt_compiler::_blend ,return_reference_to<1>()) |
| 169 | + .def("aref", &adopt_compiler::_aref ,return_reference_to<1>()) |
169 | 170 | // For compatibility only |
170 | | - .def("dx10color_write_enable", &adopt_compiler::_dx10color_write_enable,return_reference_to(_1)) |
171 | | - .def("color_write_enable", &adopt_compiler::_dx10color_write_enable,return_reference_to(_1)) |
172 | | - .def("dx10texture", &adopt_compiler::_dx10texture ,return_reference_to(_1)) |
173 | | - .def("dx10stencil", &adopt_compiler::_dx10Stencil ,return_reference_to(_1)) |
174 | | - .def("dx10stencil_ref", &adopt_compiler::_dx10StencilRef,return_reference_to(_1)) |
175 | | - .def("dx10atoc", &adopt_compiler::_dx10ATOC ,return_reference_to(_1)) |
176 | | - .def("dx10zfunc", &adopt_compiler::_dx10ZFunc ,return_reference_to(_1)) |
| 171 | + .def("dx10color_write_enable", &adopt_compiler::_dx10color_write_enable,return_reference_to<1>()) |
| 172 | + .def("color_write_enable", &adopt_compiler::_dx10color_write_enable,return_reference_to<1>()) |
| 173 | + .def("dx10texture", &adopt_compiler::_dx10texture ,return_reference_to<1>()) |
| 174 | + .def("dx10stencil", &adopt_compiler::_dx10Stencil ,return_reference_to<1>()) |
| 175 | + .def("dx10stencil_ref", &adopt_compiler::_dx10StencilRef,return_reference_to<1>()) |
| 176 | + .def("dx10atoc", &adopt_compiler::_dx10ATOC ,return_reference_to<1>()) |
| 177 | + .def("dx10zfunc", &adopt_compiler::_dx10ZFunc ,return_reference_to<1>()) |
177 | 178 |
|
178 | 179 | .def("dx10sampler", &adopt_compiler::_dx10sampler ) // returns sampler-object |
179 | 180 | .def("dx10Options", &adopt_compiler::_dx10Options ), // returns options-object |
|
0 commit comments