C# Class Nez.UI.TiledDrawable

Draws a {@link Subtexture} repeatedly to fill the area, instead of stretching it
Inheritance: SubtextureDrawable
Mostra file Open project: prime31/Nez Class Usage Examples

Public Methods

Method Description
TiledDrawable ( Subtexture subtexture ) : System
TiledDrawable ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
draw ( Graphics graphics, float x, float y, float width, float height, Color color ) : void

Method Details

TiledDrawable() public method

public TiledDrawable ( Subtexture subtexture ) : System
subtexture Nez.Textures.Subtexture
return System

TiledDrawable() public method

public TiledDrawable ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
return System

draw() public method

public draw ( Graphics graphics, float x, float y, float width, float height, Color color ) : void
graphics Graphics
x float
y float
width float
height float
color Color
return void