C# Class Protogame.DefaultRenderBatcher

Inheritance: IRenderBatcher
Show file Open project: RedpointGames/Protogame

Public Methods

Method Description
CreateInstancedRequest ( IRenderContext renderContext, RasterizerState rasterizerState, BlendState blendState, DepthStencilState depthStencilState, IEffect effect, IEffectParameterSet effectParameterSet, VertexBuffer meshVertexBuffer, IndexBuffer meshIndexBuffer, PrimitiveType primitiveType, Matrix instanceWorldTransforms, Action computeCombinedBuffers ) : IRenderRequest
CreateInstancedRequestFromState ( IRenderContext renderContext, IEffect effect, IEffectParameterSet effectParameterSet, VertexBuffer meshVertexBuffer, IndexBuffer meshIndexBuffer, PrimitiveType primitiveType, Matrix instancedWorldTransforms, Action computeCombinedBuffers ) : IRenderRequest
CreateSingleRequest ( IRenderContext renderContext, RasterizerState rasterizerState, BlendState blendState, DepthStencilState depthStencilState, IEffect effect, IEffectParameterSet effectParameterSet, VertexBuffer meshVertexBuffer, IndexBuffer meshIndexBuffer, PrimitiveType primitiveType, Matrix world, Action computeCombinedBuffers ) : IRenderRequest
CreateSingleRequestFromState ( IRenderContext renderContext, IEffect effect, IEffectParameterSet effectParameterSet, VertexBuffer meshVertexBuffer, IndexBuffer meshIndexBuffer, PrimitiveType primitiveType, Matrix world, Action computeCombinedBuffers ) : IRenderRequest
DefaultRenderBatcher ( IProfiler profiler, IRenderAutoCache renderAutoCache ) : System
FlushRequests ( IGameContext gameContext, IRenderContext renderContext ) : void
QueueRequest ( IRenderContext renderContext, IRenderRequest request ) : void
RenderRequestImmediate ( IRenderContext renderContext, IRenderRequest request ) : void

Private Methods

Method Description
SetupForRequest ( IRenderContext renderContext, IRenderRequest request, int &pc, bool setVertexBuffers ) : void

Method Details

CreateInstancedRequest() public method

public CreateInstancedRequest ( IRenderContext renderContext, RasterizerState rasterizerState, BlendState blendState, DepthStencilState depthStencilState, IEffect effect, IEffectParameterSet effectParameterSet, VertexBuffer meshVertexBuffer, IndexBuffer meshIndexBuffer, PrimitiveType primitiveType, Matrix instanceWorldTransforms, Action computeCombinedBuffers ) : IRenderRequest
renderContext IRenderContext
rasterizerState Microsoft.Xna.Framework.Graphics.RasterizerState
blendState Microsoft.Xna.Framework.Graphics.BlendState
depthStencilState Microsoft.Xna.Framework.Graphics.DepthStencilState
effect IEffect
effectParameterSet IEffectParameterSet
meshVertexBuffer VertexBuffer
meshIndexBuffer IndexBuffer
primitiveType PrimitiveType
instanceWorldTransforms Matrix
computeCombinedBuffers Action
return IRenderRequest

CreateInstancedRequestFromState() public method

public CreateInstancedRequestFromState ( IRenderContext renderContext, IEffect effect, IEffectParameterSet effectParameterSet, VertexBuffer meshVertexBuffer, IndexBuffer meshIndexBuffer, PrimitiveType primitiveType, Matrix instancedWorldTransforms, Action computeCombinedBuffers ) : IRenderRequest
renderContext IRenderContext
effect IEffect
effectParameterSet IEffectParameterSet
meshVertexBuffer VertexBuffer
meshIndexBuffer IndexBuffer
primitiveType PrimitiveType
instancedWorldTransforms Matrix
computeCombinedBuffers Action
return IRenderRequest

CreateSingleRequest() public method

public CreateSingleRequest ( IRenderContext renderContext, RasterizerState rasterizerState, BlendState blendState, DepthStencilState depthStencilState, IEffect effect, IEffectParameterSet effectParameterSet, VertexBuffer meshVertexBuffer, IndexBuffer meshIndexBuffer, PrimitiveType primitiveType, Matrix world, Action computeCombinedBuffers ) : IRenderRequest
renderContext IRenderContext
rasterizerState Microsoft.Xna.Framework.Graphics.RasterizerState
blendState Microsoft.Xna.Framework.Graphics.BlendState
depthStencilState Microsoft.Xna.Framework.Graphics.DepthStencilState
effect IEffect
effectParameterSet IEffectParameterSet
meshVertexBuffer VertexBuffer
meshIndexBuffer IndexBuffer
primitiveType PrimitiveType
world Matrix
computeCombinedBuffers Action
return IRenderRequest

CreateSingleRequestFromState() public method

public CreateSingleRequestFromState ( IRenderContext renderContext, IEffect effect, IEffectParameterSet effectParameterSet, VertexBuffer meshVertexBuffer, IndexBuffer meshIndexBuffer, PrimitiveType primitiveType, Matrix world, Action computeCombinedBuffers ) : IRenderRequest
renderContext IRenderContext
effect IEffect
effectParameterSet IEffectParameterSet
meshVertexBuffer VertexBuffer
meshIndexBuffer IndexBuffer
primitiveType PrimitiveType
world Matrix
computeCombinedBuffers Action
return IRenderRequest

DefaultRenderBatcher() public method

public DefaultRenderBatcher ( IProfiler profiler, IRenderAutoCache renderAutoCache ) : System
profiler IProfiler
renderAutoCache IRenderAutoCache
return System

FlushRequests() public method

public FlushRequests ( IGameContext gameContext, IRenderContext renderContext ) : void
gameContext IGameContext
renderContext IRenderContext
return void

QueueRequest() public method

public QueueRequest ( IRenderContext renderContext, IRenderRequest request ) : void
renderContext IRenderContext
request IRenderRequest
return void

RenderRequestImmediate() public method

public RenderRequestImmediate ( IRenderContext renderContext, IRenderRequest request ) : void
renderContext IRenderContext
request IRenderRequest
return void