XnaCircularBuffer ClassDelta Engine Documentation
Basic functionality for all XNA based circular buffers to render small batches quickly.
Inheritance Hierarchy

System Object
  DeltaEngine.Graphics CircularBuffer
    DeltaEngine.Graphics.Xna XnaCircularBuffer

Namespace: DeltaEngine.Graphics.Xna
Assembly: DeltaEngine.Graphics.Xna (in DeltaEngine.Graphics.Xna.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public class XnaCircularBuffer : CircularBuffer

The XnaCircularBuffer type exposes the following members.

Constructors

  NameDescription
Public methodXnaCircularBuffer
Initializes a new instance of the XnaCircularBuffer class
Top
Methods

  NameDescription
Public methodAdd VertexType 
Adds a short list of vertices (a quad or precomputed vertices for Particles), indices can be null for lines or when indices should be computed automatically for quads (0,1,2,0,2,3). View code on GitHub
(Inherited from CircularBuffer.)
Protected methodAddDataNative VertexType (CircularBuffer Chunk,  VertexType ,  Int16 , Int32, Int32) (Inherited from CircularBuffer.)
Protected methodAddDataNative VertexType (CircularBuffer Chunk,  VertexType ,  Int16 , Int32, Int32) (Overrides CircularBuffer AddDataNative VertexType (CircularBuffer Chunk,  VertexType ,  Int16 , Int32, Int32).)
Protected methodBufferIsFullResetToBeginning
As long as we did not put anything new into the buffer we can discard the old content. However once AddDataNative was called we need to use NoOverwrite until drawing happens.
(Overrides CircularBuffer BufferIsFullResetToBeginning .)
Protected methodComputeIndices (Inherited from CircularBuffer.)
Protected methodCreateNative (Overrides CircularBuffer CreateNative .)
Public methodDispose (Inherited from CircularBuffer.)
Protected methodDisposeNative (Overrides CircularBuffer DisposeNative .)
Protected methodDisposeNextFrame (Overrides CircularBuffer DisposeNextFrame .)
Public methodDisposeUnusedBuffersFromPreviousFrame (Overrides CircularBuffer DisposeUnusedBuffersFromPreviousFrame .)
Public methodDrawAllTextureChunks (Overrides CircularBuffer DrawAllTextureChunks .)
Protected methodDrawChunk (Overrides CircularBuffer DrawChunk(CircularBuffer Chunk).)
Protected methodDrawEverythingWhenBufferIsFull (Inherited from CircularBuffer.)
Protected methodRemapIndices (Inherited from CircularBuffer.)
Top
Fields

  NameDescription
Public fieldblendMode (Inherited from CircularBuffer.)
Protected fieldcachedQuadIndices (Inherited from CircularBuffer.)
Protected fielddevice (Inherited from CircularBuffer.)
Protected fielddrawMode (Inherited from CircularBuffer.)
Protected fieldindexSize (Inherited from CircularBuffer.)
Protected fieldisCreated (Inherited from CircularBuffer.)
Protected fieldmaxNumberOfIndices (Inherited from CircularBuffer.)
Protected fieldmaxNumberOfVertices (Inherited from CircularBuffer.)
Public fieldshader (Inherited from CircularBuffer.)
Protected fieldtotalIndexOffsetInBytes (Inherited from CircularBuffer.)
Protected fieldtotalIndicesCount (Inherited from CircularBuffer.)
Protected fieldtotalVertexOffsetInBytes (Inherited from CircularBuffer.)
Protected fieldtotalVerticesCount (Inherited from CircularBuffer.)
Protected fieldvertexSize (Inherited from CircularBuffer.)
Top
Properties

  NameDescription
Public propertyIs3D (Inherited from CircularBuffer.)
Public propertyNumberOfActiveVertices (Inherited from CircularBuffer.)
Protected propertyUsesIndexBuffer (Inherited from CircularBuffer.)
Protected propertyUsesTexturing (Inherited from CircularBuffer.)
Top
See Also