C# 클래스 Nez.TrailRibbon

Renders a trail behind a moving object Adapted from http://www.paradeofrain.com/2010/01/28/update-on-continuous-2d-trails-in-xna/
상속: RenderableComponent, IUpdatable
파일 보기 프로젝트 열기: prime31/Nez

공개 프로퍼티들

프로퍼티 타입 설명
endColor Color
ribbonRadius float
startColor Color

공개 메소드들

메소드 설명
TrailRibbon ( ) : System
TrailRibbon ( int ribbonLength ) : System
isVisibleFromCamera ( Camera camera ) : bool
onAddedToEntity ( ) : void
onEnabled ( ) : void
render ( Graphics graphics, Camera camera ) : void

비공개 메소드들

메소드 설명
IUpdatable ( ) : void
calculateVertices ( ) : void

transfers the data from our segments to the vertices for display

initializeVertices ( ) : void

builds the intialial ribbon segments

메소드 상세

TrailRibbon() 공개 메소드

public TrailRibbon ( ) : System
리턴 System

TrailRibbon() 공개 메소드

public TrailRibbon ( int ribbonLength ) : System
ribbonLength int
리턴 System

isVisibleFromCamera() 공개 메소드

public isVisibleFromCamera ( Camera camera ) : bool
camera Camera
리턴 bool

onAddedToEntity() 공개 메소드

public onAddedToEntity ( ) : void
리턴 void

onEnabled() 공개 메소드

public onEnabled ( ) : void
리턴 void

render() 공개 메소드

public render ( Graphics graphics, Camera camera ) : void
graphics Graphics
camera Camera
리턴 void

프로퍼티 상세

endColor 공개적으로 프로퍼티

end (tail) color of the ribbon
public Color endColor
리턴 Color

ribbonRadius 공개적으로 프로퍼티

max pixel radius of the ribbon
public float ribbonRadius
리턴 float

startColor 공개적으로 프로퍼티

starting color of the ribbon
public Color startColor
리턴 Color