C# 클래스 Sharplike.Core.Rendering.RegionTile

파일 보기 프로젝트 열기: eropple/sharplike 1 사용 예제들

공개 메소드들

메소드 설명
AddGlyph ( Int32 glyphIndex, Color glyphColor, Color backColor ) : void

Adds a glyph to the tile.

Many glyphs can be in a single tile, and they will just overlay each other. Make sure to invoke DisplayTile.ClearGlyphs() or DisplayTile.Reset() if you want to fully replace them.

AddGlyphProvider ( IGlyphProvider g ) : void

Adds a glyph to the tile.

Many glyphs can be in a single tile, and they will just overlay each other. Make sure to invoke DisplayTile.ClearGlyphs() or DisplayTile.Reset() if you want to fully replace them.

ClearGlyphs ( ) : void

Clears all glyphs from the tile. Does not reset the background color.

RemoveGlyphProvider ( IGlyphProvider g ) : void

Removes a single glyph provider from the region tile.

Reset ( ) : void

Clears all glyphs and resets the background color to black.

메소드 상세

AddGlyph() 공개 메소드

Adds a glyph to the tile.
Many glyphs can be in a single tile, and they will just overlay each other. Make sure to invoke DisplayTile.ClearGlyphs() or DisplayTile.Reset() if you want to fully replace them.
public AddGlyph ( Int32 glyphIndex, Color glyphColor, Color backColor ) : void
glyphIndex System.Int32 The index of the glyph to add.
glyphColor Color The color of the specific glyph.
backColor Color
리턴 void

AddGlyphProvider() 공개 메소드

Adds a glyph to the tile.
Many glyphs can be in a single tile, and they will just overlay each other. Make sure to invoke DisplayTile.ClearGlyphs() or DisplayTile.Reset() if you want to fully replace them.
public AddGlyphProvider ( IGlyphProvider g ) : void
g IGlyphProvider The pre-created glyph to add.
리턴 void

ClearGlyphs() 공개 메소드

Clears all glyphs from the tile. Does not reset the background color.
public ClearGlyphs ( ) : void
리턴 void

RemoveGlyphProvider() 공개 메소드

Removes a single glyph provider from the region tile.
public RemoveGlyphProvider ( IGlyphProvider g ) : void
g IGlyphProvider The glyph provider to remove
리턴 void

Reset() 공개 메소드

Clears all glyphs and resets the background color to black.
public Reset ( ) : void
리턴 void