예제 #1
0
sge::opengl::texture::const_optional_base_ref
sge::opengl::texture::bind_context::stage(
	sge::renderer::texture::stage const _stage
) const
{
	return
		map_[
			_stage.get()
		];
}
예제 #2
0
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;
}
예제 #3
0
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!")
		);
}