C# Класс FluidPort.PrimitiveBatch

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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