C# 클래스 FluidPort.PrimitiveBatch

상속: IDisposable
파일 보기 프로젝트 열기: klutch/Box2DFluid 1 사용 예제들

공개 메소드들

메소드 설명
AddVertex ( Vector2 vertex, Color color, PrimitiveType primitiveType ) : void
Begin ( Matrix &projection, Matrix &view ) : void

Begin is called to tell the PrimitiveBatch what kind of primitives will be drawn, and to prepare the graphics card to render those primitives.

Dispose ( ) : void
End ( ) : void

End is called once all the primitives have been drawn using AddVertex. it will call Flush to actually submit the draw call to the graphics card, and then tell the basic effect to end.

IsReady ( ) : bool
PrimitiveBatch ( GraphicsDevice graphicsDevice ) : System

the constructor creates a new PrimitiveBatch and sets up all of the internals that PrimitiveBatch will need.

PrimitiveBatch ( GraphicsDevice graphicsDevice, int bufferSize ) : System
SetProjection ( Matrix &projection ) : void

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
FlushLines ( ) : void
FlushTriangles ( ) : void

메소드 상세

AddVertex() 공개 메소드

public AddVertex ( Vector2 vertex, Color color, PrimitiveType primitiveType ) : void
vertex Vector2
color Color
primitiveType PrimitiveType
리턴 void

Begin() 공개 메소드

Begin is called to tell the PrimitiveBatch what kind of primitives will be drawn, and to prepare the graphics card to render those primitives.
public Begin ( Matrix &projection, Matrix &view ) : void
projection Matrix The projection.
view Matrix The view.
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

End() 공개 메소드

End is called once all the primitives have been drawn using AddVertex. it will call Flush to actually submit the draw call to the graphics card, and then tell the basic effect to end.
public End ( ) : void
리턴 void

IsReady() 공개 메소드

public IsReady ( ) : bool
리턴 bool

PrimitiveBatch() 공개 메소드

the constructor creates a new PrimitiveBatch and sets up all of the internals that PrimitiveBatch will need.
public PrimitiveBatch ( GraphicsDevice graphicsDevice ) : System
graphicsDevice GraphicsDevice The graphics device.
리턴 System

PrimitiveBatch() 공개 메소드

public PrimitiveBatch ( GraphicsDevice graphicsDevice, int bufferSize ) : System
graphicsDevice GraphicsDevice
bufferSize int
리턴 System

SetProjection() 공개 메소드

public SetProjection ( Matrix &projection ) : void
projection Matrix
리턴 void