C# 클래스 Sparrow.Display.Image

상속: Quad
파일 보기 프로젝트 열기: fmotagarcia/sparrow-sharp

공개 메소드들

메소드 설명
Image ( Texture texture ) : System

Initialize a quad with a texture mapped onto it

ReadjustSize ( ) : void

Readjusts the dimensions of the image according to its current texture. Call this method to synchronize image and texture size after assigning a texture with a different size.

SetTexCoords ( Point coords, int vertexID ) : void

Sets the texture coordinates of a vertex. Coordinates are in the range [0, 1].

SetTexCoords ( float x, float y, int vertexID ) : void

Sets the texture coordinates of a vertex. Coordinates are in the range [0, 1].

TexCoordsOfVertex ( int vertexID ) : Point

Gets the texture coordinates of a vertex.

보호된 메소드들

메소드 설명
Image ( ) : System
InitImage ( Texture texture ) : void
VertexDataDidChange ( ) : void

비공개 메소드들

메소드 설명
CopyVertexDataTo ( VertexData targetData, int atIndex, bool copyColor ) : void

메소드 상세

Image() 보호된 메소드

protected Image ( ) : System
리턴 System

Image() 공개 메소드

Initialize a quad with a texture mapped onto it
public Image ( Texture texture ) : System
texture Sparrow.Textures.Texture The texture to use. Use for example the TextureLoader class to load one.
리턴 System

InitImage() 보호된 메소드

protected InitImage ( Texture texture ) : void
texture Sparrow.Textures.Texture
리턴 void

ReadjustSize() 공개 메소드

Readjusts the dimensions of the image according to its current texture. Call this method to synchronize image and texture size after assigning a texture with a different size.
public ReadjustSize ( ) : void
리턴 void

SetTexCoords() 공개 메소드

Sets the texture coordinates of a vertex. Coordinates are in the range [0, 1].
public SetTexCoords ( Point coords, int vertexID ) : void
coords Point
vertexID int
리턴 void

SetTexCoords() 공개 메소드

Sets the texture coordinates of a vertex. Coordinates are in the range [0, 1].
public SetTexCoords ( float x, float y, int vertexID ) : void
x float
y float
vertexID int
리턴 void

TexCoordsOfVertex() 공개 메소드

Gets the texture coordinates of a vertex.
public TexCoordsOfVertex ( int vertexID ) : Point
vertexID int
리턴 Point

VertexDataDidChange() 보호된 메소드

protected VertexDataDidChange ( ) : void
리턴 void