103 private static readonly
float[]
xCornerOffsets =
new float[4] { 0f, 1f, 1f, 0f };
105 private static readonly
float[]
yCornerOffsets =
new float[4] { 0f, 0f, 1f, 1f };
170 vertexBuffer.ContentLost +=
delegate
188 short[]
array =
new short[12288];
189 for (
int i = 0; i < 2048; i++)
210 float num = 1f / (float)texture.
Width;
236 for (
int i = 0; i <
num3; i++)
240 if (
ptr2->Rotation != 0f)
250 float num6 = ((
ptr2->Source.Z != 0f) ? (
ptr2->Origin.X /
ptr2->Source.Z) : (
ptr2->Origin.X * 2
E+32f));
251 float num7 = ((
ptr2->Source.W != 0f) ? (
ptr2->Origin.Y /
ptr2->Source.W) : (
ptr2->Origin.Y * 2
E+32f));
252 for (
int j = 0;
j < 4;
j++)
268 ptr4->Position.X = x;
269 ptr4->Position.Y = y;
284 int numVertices =
num3 * 4;
286 int primitiveCount =
num3 * 2;
296 if (graphicsDevice ==
null)
400 destination.X = position.
X;
401 destination.Y = position.
Y;
410 destination.X = position.
X;
411 destination.Y = position.
Y;
420 destination.X = position.
X;
421 destination.Y = position.
Y;
422 destination.Z = scale;
423 destination.W = scale;
430 destination.X = position.
X;
431 destination.Y = position.
Y;
432 destination.Z = scale.
X;
433 destination.W = scale.
Y;
440 destination.X = destinationRectangle.
X;
441 destination.Y = destinationRectangle.
Y;
442 destination.Z = destinationRectangle.
Width;
443 destination.W = destinationRectangle.
Height;
450 destination.X = destinationRectangle.
X;
451 destination.Y = destinationRectangle.
Y;
452 destination.Z = destinationRectangle.
Width;
453 destination.W = destinationRectangle.
Height;
460 destination.X = destinationRectangle.
X;
461 destination.Y = destinationRectangle.
Y;
462 destination.Z = destinationRectangle.
Width;
463 destination.W = destinationRectangle.
Height;
586 num *= (float)
value.Width;
606 ptr->Destination.Z = num;
608 ptr->Origin.X = origin.X;
609 ptr->Origin.Y = origin.Y;
610 ptr->Rotation = rotation;
612 ptr->Effects = effects;
717 for (
int i = 0; i <
count2; i++)
766 float num = ((viewport.Width > 0) ? (1f / (
float)viewport.
Width) : 0f);
767 float num2 = ((viewport.Height > 0) ? (-1f / (
float)viewport.
Height) : 0f);
769 matrix.M11 = num * 2f;
770 matrix.M22 =
num2 * 2f;
static string NullNotAllowed
static string EndMustBeCalledBeforeBegin
static string BeginMustBeCalledBeforeDraw
static string CannotNextSpriteBeginImmediate
static string DeviceCannotBeNullOnResourceCreate
static string BeginMustBeCalledBeforeEnd
static readonly BlendState AlphaBlend
static readonly DepthStencilState None
unsafe void SetValue(Texture value)
EffectPassCollection Passes
override void Dispose([MarshalAs(UnmanagedType.U1)] bool P_0)
EffectParameterCollection Parameters
unsafe EffectTechnique CurrentTechnique
ushort spriteImmediateBeginCount
SamplerStateCollection SamplerStates
unsafe void SetVertexBuffer(VertexBuffer vertexBuffer, int vertexOffset)
TextureCollection Textures
unsafe void DrawIndexedPrimitives(PrimitiveType primitiveType, int baseVertex, int minVertexIndex, int numVertices, int startIndex, int primitiveCount)
override void Dispose([MarshalAs(UnmanagedType.U1)] bool P_0)
static readonly RasterizerState CullCounterClockwise
static readonly SamplerState LinearClamp
BackToFrontComparer(SpriteBatch parent)
int Compare(int x, int y)
FrontToBackComparer(SpriteBatch parent)
int Compare(int x, int y)
int Compare(int x, int y)
TextureComparer(SpriteBatch parent)
void ConstructPlatformData()
void Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
VertexPositionColorTexture[] outputVertices
void Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, Color color)
TextureComparer textureComparer
SamplerState samplerState
void DisposePlatformData()
void Begin(SpriteSortMode sortMode, BlendState blendState)
DepthStencilState depthStencilState
void Draw(Texture2D texture, Rectangle destinationRectangle, Rectangle? sourceRectangle, Color color)
static readonly float[] yCornerOffsets
SpriteInfo[] sortedSprites
static short[] CreateIndexData()
void Begin(SpriteSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState, Effect effect)
void Draw(Texture2D texture, Vector2 position, Color color)
Texture2D[] spriteTextures
void DrawString(SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color)
void DrawString(SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
void Draw(Texture2D texture, Rectangle destinationRectangle, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, SpriteEffects effects, float layerDepth)
static ? Rectangle nullRectangle
void SetPlatformRenderState()
void DrawString(SpriteFont spriteFont, string text, Vector2 position, Color color)
void Begin(SpriteSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState)
override void Dispose(bool disposing)
FrontToBackComparer frontToBackComparer
BackToFrontComparer backToFrontComparer
void DrawString(SpriteFont spriteFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
unsafe void InternalDraw(Texture2D texture, ref Vector4 destination, bool scaleDestination, ref Rectangle? sourceRectangle, Color color, float rotation, ref Vector2 origin, SpriteEffects effects, float depth)
void Begin(SpriteSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState, Effect effect, Matrix transformMatrix)
EffectParameter effectMatrixTransform
SpriteBatch(GraphicsDevice graphicsDevice)
void DrawString(SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth)
unsafe void PlatformRenderBatch(Texture2D texture, SpriteInfo[] sprites, int offset, int count)
void RenderBatch(Texture2D texture, SpriteInfo[] sprites, int offset, int count)
RasterizerState rasterizerState
static readonly float[] xCornerOffsets
DynamicVertexBuffer vertexBuffer
static Vector2 vector2Zero
void Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth)
SpriteSortMode spriteSortMode
DynamicIndexBuffer indexBuffer
void Draw(Texture2D texture, Rectangle destinationRectangle, Color color)
void DrawString(SpriteFont spriteFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth)
unsafe int CompareTo(Texture other)
override void Dispose([MarshalAs(UnmanagedType.U1)] bool P_0)
static void Sort(Array array)
static unsafe void Clear(Array array)
static double Cos(double d)
static double Sin(double a)