C# 클래스 OpenBveApi.Texture.Texture

Represents a texture.
파일 보기 프로젝트 열기: sladen/openbve

공개 메소드들

메소드 설명
Texture ( int width, int height, byte bytes ) : System

Creates a new instance of this class.

메소드 상세

Texture() 공개 메소드

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.
리턴 System