C# Class OpenBveApi.Textures.TextureClipRegion

Represents a region in a texture to be extracted.
Mostra file Open project: leezer3/OpenBVE Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool

Checks whether this instance is equal to the specified object.

TextureClipRegion ( int left, int top, int width, int height ) : System

Creates a new clip region.

operator ( ) : bool

Checks whether two clip regions are equal.

Method Details

Equals() public method

Checks whether this instance is equal to the specified object.
public Equals ( object obj ) : bool
obj object The object.
return bool

TextureClipRegion() public method

Creates a new clip region.
Raised when the left or top are negative. Raised when the width or height are non-positive.
public TextureClipRegion ( int left, int top, int width, int height ) : System
left int The left coordinate.
top int The top coordinate.
width int The width.
height int The height.
return System

operator() public static method

Checks whether two clip regions are equal.
public static operator ( ) : bool
return bool