sge::opengl::texture::const_optional_base_ref sge::opengl::texture::bind_context::stage( sge::renderer::texture::stage const _stage ) const { return map_[ _stage.get() ]; }
void sge::opengl::texture::bind_context::stage( sge::renderer::texture::stage const _stage, sge::opengl::texture::const_optional_base_ref const &_texture ) { map_[ _stage.get() ] = _texture; }
void sge::d3d9::devicefuncs::set_sampler_state( IDirect3DDevice9 &_device, sge::renderer::texture::stage const _stage, D3DSAMPLERSTATETYPE const _type, DWORD const _value ) { if( _device.SetSamplerState( _stage.get(), _type, _value ) != D3D_OK ) throw sge::renderer::exception( FCPPT_TEXT("SetSamplerState() failed!") ); }