Skip to content

Instantly share code, notes, and snippets.

@Clancey
Created June 23, 2011 17:54
Show Gist options
  • Save Clancey/1043121 to your computer and use it in GitHub Desktop.
Save Clancey/1043121 to your computer and use it in GitHub Desktop.
public void Begin(SpriteSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState, Effect effect, Matrix transformMatrix)
{
_sortMode = sortMode;
_blendState = blendState ?? BlendState.AlphaBlend;
_depthStencilState = depthStencilState ?? DepthStencilState.None;
_samplerState = samplerState ?? SamplerState.LinearClamp;
_rasterizerState = rasterizerState ?? RasterizerState.CullCounterClockwise;
if(effect != null)
_effect = effect;
_matrix = transformMatrix;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment