Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Draw() [4/7]

void Microsoft.Xna.Framework.Graphics.SpriteBatch.Draw ( Texture2D texture,
Vector2 position,
Color color )
inline

Definition at line 397 of file SpriteBatch.cs.

398 {
399 Vector4 destination = default(Vector4);
400 destination.X = position.X;
401 destination.Y = position.Y;
402 destination.Z = 1f;
403 destination.W = 1f;
404 InternalDraw(texture, ref destination, scaleDestination: true, ref nullRectangle, color, 0f, ref vector2Zero, SpriteEffects.None, 0f);
405 }
unsafe void InternalDraw(Texture2D texture, ref Vector4 destination, bool scaleDestination, ref Rectangle? sourceRectangle, Color color, float rotation, ref Vector2 origin, SpriteEffects effects, float depth)

References System.destination, Microsoft.Xna.Framework.Graphics.SpriteBatch.InternalDraw(), Microsoft.Xna.Framework.Graphics.SpriteBatch.nullRectangle, Microsoft.Xna.Framework.Graphics.SpriteBatch.vector2Zero, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.

Referenced by Terraria.WorldBuilding.Actions.DebugDraw.Apply(), Terraria.GameContent.Skies.AmbientSky.SkyEntity.CommonDraw(), Terraria.GameContent.Bestiary.CustomEntryIcon.Draw(), Terraria.GameContent.Bestiary.UnlockableNPCEntryIcon.Draw(), Terraria.GameContent.Golf.FancyGolfPredictionLine.Draw(), Terraria.Graphics.Renderers.CreativeSacrificeParticle.Draw(), Terraria.Graphics.Renderers.FadingParticle.Draw(), Terraria.Graphics.Renderers.GasParticle.Draw(), Terraria.Graphics.Renderers.LittleFlyingCritterParticle.Draw(), Terraria.Graphics.Renderers.PrettySparkleParticle.Draw(), Terraria.Graphics.Renderers.RandomizedFrameParticle.Draw(), Terraria.DataStructures.DrawData.Draw(), Terraria.GameContent.UI.EmoteBubble.Draw(), Terraria.GameContent.Events.ScreenObstruction.Draw(), Terraria.GameContent.UI.IssueReportsIndicator.Draw(), Terraria.GameContent.UI.WorkshopPublishingIndicator.Draw(), Terraria.GameInput.LockOnHelper.Draw(), Terraria.Graphics.Effects.SimpleOverlay.Draw(), Terraria.GameContent.Skies.BlizzardSky.Draw(), Terraria.GameContent.Skies.MartianSky.Draw(), Terraria.GameContent.Skies.MoonLordSky.Draw(), Terraria.GameContent.Skies.NebulaSky.Draw(), Terraria.GameContent.Skies.PartySky.Draw(), Terraria.GameContent.Skies.SandstormSky.Draw(), Terraria.GameContent.Skies.SlimeSky.Draw(), Terraria.GameContent.Skies.SolarSky.Draw(), Terraria.GameContent.Skies.StardustSky.Draw(), Terraria.GameContent.Skies.VortexSky.Draw(), Terraria.UI.ItemSlot.Draw(), Terraria.GameContent.UI.ResourceSets.ResourceDrawSettings.Draw(), Terraria.DataStructures.TitleLinkButton.Draw(), Terraria.GameContent.UI.Minimap.MinimapFrame.Button.Draw(), Terraria.GameContent.Events.ScreenDarkness.DrawBack(), Terraria.GameContent.UI.Minimap.MinimapFrame.DrawBackground(), Terraria.GameContent.UI.Elements.UIScrollbar.DrawBar(), Terraria.GameContent.UI.BigProgressBar.BigProgressBarHelper.DrawBareBonesBar(), Terraria.Graphics.Capture.CaptureInterface.ModeDragBounds.DrawBound(), Terraria.Graphics.Capture.CaptureInterface.DrawButtons(), Terraria.Graphics.Capture.CaptureInterface.DrawCameraLock(), Terraria.UI.AchievementAdvisor.DrawCard(), Terraria.GameContent.UI.WiresUI.WiresRadial.DrawCursorArea(), Terraria.Utils.DrawCursorSingle(), Terraria.GameContent.UI.BigProgressBar.BigProgressBarHelper.DrawFancyBar(), Terraria.GameContent.UI.BigProgressBar.BigProgressBarHelper.DrawFancyBar(), Terraria.GameContent.UI.Elements.UIGenProgressBar.DrawFilling(), Terraria.GameContent.UI.Elements.UIGenProgressBar.DrawFilling2(), Terraria.GameContent.UI.WiresUI.WiresRadial.DrawFlower(), Terraria.GameContent.UI.Minimap.MinimapFrame.DrawForeground(), Terraria.HitTile.DrawFreshAnimations(), Terraria.GameContent.Events.ScreenDarkness.DrawFront(), Terraria.GameContent.UI.Elements.UIResourcePack.DrawIcon(), Terraria.UI.InGamePopups.AchievementUnlockedPopup.DrawInGame(), Terraria.UI.InGamePopups.PlayerWantsToJoinGamePopup.DrawInGame(), Terraria.UI.InGamePopups.PlayerWantsToJoinGamePopup.DrawInNotificationsArea(), Terraria.Utils.DrawInvBG(), Terraria.UI.ItemSlot.DrawItemIcon(), Terraria.GameContent.Skies.LanternSky.DrawLantern(), Terraria.Utils.DrawLaser(), Terraria.GameContent.UI.ResourceSets.ClassicPlayerResourcesDisplaySet.DrawLife(), Terraria.GameContent.UI.WiresUI.WiresRadial.DrawLine(), Terraria.Utils.DrawLine(), Terraria.Utils.DrawLine(), ReLogic.Graphics.BasicDebugDrawer.DrawLine(), Terraria.GameContent.UI.ResourceSets.ClassicPlayerResourcesDisplaySet.DrawMana(), Terraria.GameContent.CoinLossRevengeSystem.RevengeMarker.DrawMapIcon(), Terraria.Graphics.Capture.CaptureInterface.ModeEdgeSelection.DrawMarkedArea(), Terraria.Graphics.Capture.CaptureInterface.ModeDragBounds.DrawMarkedArea(), Terraria.UI.ItemSlot.DrawMoney(), Terraria.GameContent.UI.Elements.UIPanel.DrawPanel(), Terraria.GameContent.UI.Elements.UICharacterListItem.DrawPanel(), Terraria.GameContent.UI.Elements.UIWorkshopImportWorldListItem.DrawPanel(), Terraria.GameContent.UI.Elements.UIWorldListItem.DrawPanel(), Terraria.Utils.DrawPanel(), Terraria.GameContent.UI.Elements.UIAchievementListItem.DrawPanelBottom(), Terraria.GameContent.UI.Elements.UIAchievementListItem.DrawPanelTop(), Terraria.TileObject.DrawPreview(), Terraria.GameContent.UI.Elements.UIAchievementListItem.DrawProgressBar(), Terraria.UI.ItemSlot.DrawRadialCircular(), Terraria.UI.ItemSlot.DrawRadialDpad(), Terraria.UI.ItemSlot.DrawRadialQuicks(), Terraria.UI.ItemSlot.DrawSavings(), Terraria.GameContent.UI.CustomCurrencyManager.DrawSavings(), Terraria.GameContent.UI.CustomCurrencySingleCoin.DrawSavingsMoney(), Terraria.GameContent.UI.Elements.EmoteButton.DrawSelf(), Terraria.GameContent.UI.Elements.GroupOptionButton< T >.DrawSelf(), Terraria.GameContent.UI.Elements.UIAchievementListItem.DrawSelf(), Terraria.GameContent.UI.Elements.UIBestiaryEntryIcon.DrawSelf(), Terraria.GameContent.UI.Elements.UICharacter.DrawSelf(), Terraria.GameContent.UI.Elements.UICharacterListItem.DrawSelf(), Terraria.GameContent.UI.Elements.UIColoredImageButton.DrawSelf(), Terraria.GameContent.UI.Elements.UIGenProgressBar.DrawSelf(), Terraria.GameContent.UI.Elements.UIHairStyleButton.DrawSelf(), Terraria.GameContent.UI.Elements.UIIconTextButton.DrawSelf(), Terraria.GameContent.UI.Elements.UIImage.DrawSelf(), Terraria.GameContent.UI.Elements.UIImageButton.DrawSelf(), Terraria.GameContent.UI.Elements.UIImageFramed.DrawSelf(), Terraria.GameContent.UI.Elements.UIImageWithBorder.DrawSelf(), Terraria.GameContent.UI.Elements.UIKeybindingToggleListItem.DrawSelf(), Terraria.GameContent.UI.Elements.UIProgressBar.UIInnerProgressBar.DrawSelf(), Terraria.GameContent.UI.Elements.UIResourcePack.DrawSelf(), Terraria.GameContent.UI.Elements.UIToggleImage.DrawSelf(), Terraria.GameContent.UI.Elements.UIVerticalSeparator.DrawSelf(), Terraria.GameContent.UI.Elements.UIWorkshopImportWorldListItem.DrawSelf(), Terraria.GameContent.UI.Elements.UIWorldCreationPreview.DrawSelf(), Terraria.GameContent.UI.Elements.UIWorldListItem.DrawSelf(), Terraria.Utils.DrawSplicedPanel(), ReLogic.Graphics.BasicDebugDrawer.DrawSquare(), ReLogic.Graphics.BasicDebugDrawer.DrawSquare(), ReLogic.Graphics.BasicDebugDrawer.DrawSquareFromCenter(), Terraria.GameContent.NPCHeadDrawRenderTargetContent.DrawTheContent(), Terraria.Graphics.Capture.CaptureCamera.DrawTick(), Terraria.IngameOptions.DrawValueBar(), Terraria.GameContent.UI.Elements.UIColoredSlider.DrawValueBar(), Terraria.GameContent.UI.Elements.UIColoredSliderSimple.DrawValueBarDynamicWidth(), Terraria.GameContent.UI.Elements.UIVerticalSlider.DrawValueBarDynamicWidth(), Terraria.GameContent.Drawing.WallDrawing.DrawWalls(), Terraria.GameContent.Events.MoonlordDeathDrama.DrawWhite(), Terraria.GameContent.AnOutlinedDrawRenderTargetContent.HandleUseReqest(), Microsoft.Xna.Framework.Graphics.SpriteFont.InternalDraw(), and Terraria.GameContent.UI.Chat.GlyphTagHandler.GlyphSnippet.UniqueDraw().