C# Class VoxelTerrain.QuadRenderer

This object can render texture onto screen.
显示文件 Open project: barograf/VoxelTerrain Class Usage Examples

Public Methods

Method Description
QuadRenderer ( Device graphicsDevice ) : SlimDX.Direct3D11

Default constructor.

Render ( ShaderResourceView texture, float scale ) : void

Renders texture onto screen and scales it.

Method Details

QuadRenderer() public method

Default constructor.
public QuadRenderer ( Device graphicsDevice ) : SlimDX.Direct3D11
graphicsDevice Device Virtual adapter used to perform rendering.
return SlimDX.Direct3D11

Render() public method

Renders texture onto screen and scales it.
public Render ( ShaderResourceView texture, float scale ) : void
texture ShaderResourceView Texture to render onto screen.
scale float Scaling value.
return void