@@ -24,6 +24,12 @@ class adopt_dx10options
2424 {
2525 return RImplementation.o .msaa_alphatest == CRender::MSAA_ATEST_DX10_0_ATOC;
2626 }
27+
28+ LPCSTR _get_level ()
29+ {
30+ const shared_str level_name = g_pGameLevel->name ();
31+ return level_name.c_str ();
32+ }
2733};
2834
2935// wrapper
@@ -288,6 +294,11 @@ class adopt_compiler
288294 C->r_StencilRef (Ref);
289295 return *this ;
290296 }
297+ adopt_compiler& _dx10CullMode (u32 Ref)
298+ {
299+ C->r_CullMode ((D3DCULL)Ref);
300+ return *this ;
301+ }
291302 adopt_compiler& _dx10ATOC (bool Enable)
292303 {
293304 C->RS .SetRS (XRDX11RS_ALPHATOCOVERAGE, Enable);
@@ -331,6 +342,7 @@ void CResourceManager::LS_Load()
331342 [
332343 class_<adopt_dx10options>(" _dx10options" )
333344 .def (" dx10_msaa_alphatest_atoc" , &adopt_dx10options::_dx10_msaa_alphatest_atoc)
345+ .def (" getLevel" , &adopt_dx10options::_get_level)
334346 // .def("", &adopt_dx10options::_dx10Options ), // returns options-object
335347 ,
336348
@@ -376,6 +388,7 @@ void CResourceManager::LS_Load()
376388 .def (" dx10texture" , &adopt_compiler::_dx10texture, return_reference_to<1 >())
377389 .def (" dx10stencil" , &adopt_compiler::_dx10Stencil, return_reference_to<1 >())
378390 .def (" dx10stencil_ref" , &adopt_compiler::_dx10StencilRef, return_reference_to<1 >())
391+ .def (" dx10cullmode" , &adopt_compiler::_dx10CullMode, return_reference_to<1 >())
379392 .def (" dx10atoc" , &adopt_compiler::_dx10ATOC, return_reference_to<1 >())
380393 .def (" dx10zfunc" , &adopt_compiler::_dx10ZFunc, return_reference_to<1 >())
381394
0 commit comments