C# Class OpenBveApi.Texture.Texture

Represents a texture.
Datei anzeigen Open project: sladen/openbve

Public Methods

Method Description
Texture ( int width, int height, byte bytes ) : System

Creates a new instance of this class.

Method Details

Texture() public method

Creates a new instance of this class.
Raised when the byte array is a null reference. Raised when the length of the byte array is not 4 * width * height.
public Texture ( int width, int height, byte bytes ) : System
width int The width of the texture in pixels.
height int The height of the texture in pixels.
bytes byte The RGBA texture data. Pixels are stored row-based from top to bottom, and within a row from left to right. All pixels take four bytes in the order red, green, blue, alpha.
return System