terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ Set() [2/4]

void Microsoft.Xna.Framework.Graphics.SpriteBatchItem.Set ( float x,
float y,
float dx,
float dy,
float w,
float h,
float sin,
float cos,
VertexColors colors,
Vector2 texCoordTL,
Vector2 texCoordBR )
inline

Definition at line 146 of file SpriteBatchItem.cs.

147 {
148 Texture2D texture = this.Texture;
149 if (texture == null)
150 {
151 float num;
153 float y2 = texCoordTL.Y;
154 float num2;
156 byte r = colors.TopRightColor.R;
158 byte g = colors.TopRightColor.G;
160 byte b = colors.TopRightColor.B;
164 float y3 = texCoordTL.Y;
165 float num3;
167 byte r2 = colors.BottomLeftColor.R;
169 byte g2 = colors.BottomLeftColor.G;
171 byte b2 = colors.BottomLeftColor.B;
175 float y4 = texCoordBR.Y;
178 byte r3 = colors.BottomRightColor.R;
180 byte g3 = colors.BottomRightColor.G;
182 byte b3 = colors.BottomRightColor.B;
186 float y5 = texCoordBR.Y;
188 return;
189 }
190 TextureAtlasEntry packedEntry = texture.PackedEntry;
191 if (packedEntry != null)
192 {
193 int unityWidth = texture.UnityWidth;
194 int unityHeight = texture.UnityHeight;
195 short textureHeight = packedEntry.TextureHeight;
196 short textureOffsetX = packedEntry.TextureOffsetX;
197 short textureOffsetY = packedEntry.TextureOffsetY;
198 short textureScale = packedEntry.TextureScale;
199 float x2 = texCoordTL.X;
200 float y6 = texCoordTL.Y;
201 float x3 = texCoordBR.X;
202 float y7 = texCoordBR.Y;
203 bool tileTrimming = packedEntry.TileTrimming;
204 float x4 = texCoordTL.X;
205 float y8 = texCoordTL.Y;
206 float x5 = texCoordBR.X;
207 float y9 = texCoordBR.Y;
208 if (textureOffsetX == 0)
209 {
210 }
211 return;
212 }
213 }
class f__AnonymousType0<< Count > j__TPar

References Terraria.Graphics.VertexColors.BottomLeftColor, Terraria.Graphics.VertexColors.BottomRightColor, j__TPar, Microsoft.Xna.Framework.Graphics.Texture2D.PackedEntry, Microsoft.Xna.Framework.Graphics.SpriteBatchItem.Texture, Terraria.Graphics.VertexColors.TopRightColor, Microsoft.Xna.Framework.Graphics.Texture2D.UnityHeight, and Microsoft.Xna.Framework.Graphics.Texture2D.UnityWidth.