Created
June 23, 2011 17:54
-
-
Save Clancey/1043121 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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