C# Class MilkShakeFramework.Render.RenderManager

Inheritance: MilkShakeFramework.Core.Scenes.Components.SceneComponent
显示文件 Open project: lucas-jones/MilkShake-old Class Usage Examples

Public Methods

Method Description
Begin ( BlendState blendState ) : void
Begin ( Effect effect = null ) : void
Begin ( Effect effect, BlendState blend ) : void
Begin ( Matrix matrix ) : void
Draw ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, Rectangle sourceRectangle ) : void
Draw ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, Rectangle sourceRectangle, SpriteEffects spriteEffects ) : void
Draw ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, Rectangle sourceRectangle, SpriteEffects spriteEffects, Color color, float rotation, Vector2 origin, Vector2 scale ) : void
Draw ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, float rotation, Vector2 origin, Color color, float scaleX = 1, float scaleY = 1 ) : void
End ( ) : void
RawBegin ( ) : void
RawDraw ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, Color color ) : void
RawDraw ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, Rectangle sourceRectangle, SpriteEffects spriteEffects, Color color, float rotation, Vector2 origin, Vector2 scale ) : void
RawDraw ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, float rotation, Vector2 origin, Color color, float scaleX = 1, float scaleY = 1 ) : void
RenderManager ( ) : System
SetRenderTarget ( RenderTarget2D renderTarget ) : void
cameraOffset ( ) : Vector2

Method Details

Begin() public method

public Begin ( BlendState blendState ) : void
blendState Microsoft.Xna.Framework.Graphics.BlendState
return void

Begin() public method

public Begin ( Effect effect = null ) : void
effect Microsoft.Xna.Framework.Graphics.Effect
return void

Begin() public method

public Begin ( Effect effect, BlendState blend ) : void
effect Microsoft.Xna.Framework.Graphics.Effect
blend Microsoft.Xna.Framework.Graphics.BlendState
return void

Begin() public method

public Begin ( Matrix matrix ) : void
matrix Matrix
return void

Draw() public method

public Draw ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, Rectangle sourceRectangle ) : void
position Vector2
texture Microsoft.Xna.Framework.Graphics.Texture2D
width int
height int
sourceRectangle Microsoft.Xna.Framework.Rectangle
return void

Draw() public method

public Draw ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, Rectangle sourceRectangle, SpriteEffects spriteEffects ) : void
position Vector2
texture Microsoft.Xna.Framework.Graphics.Texture2D
width int
height int
sourceRectangle Microsoft.Xna.Framework.Rectangle
spriteEffects SpriteEffects
return void

Draw() public method

public Draw ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, Rectangle sourceRectangle, SpriteEffects spriteEffects, Color color, float rotation, Vector2 origin, Vector2 scale ) : void
position Vector2
texture Microsoft.Xna.Framework.Graphics.Texture2D
width int
height int
sourceRectangle Microsoft.Xna.Framework.Rectangle
spriteEffects SpriteEffects
color Color
rotation float
origin Vector2
scale Vector2
return void

Draw() public method

public Draw ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, float rotation, Vector2 origin, Color color, float scaleX = 1, float scaleY = 1 ) : void
position Vector2
texture Microsoft.Xna.Framework.Graphics.Texture2D
width int
height int
rotation float
origin Vector2
color Color
scaleX float
scaleY float
return void

End() public method

public End ( ) : void
return void

RawBegin() public method

public RawBegin ( ) : void
return void

RawDraw() public method

public RawDraw ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, Color color ) : void
position Vector2
texture Microsoft.Xna.Framework.Graphics.Texture2D
width int
height int
color Color
return void

RawDraw() public method

public RawDraw ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, Rectangle sourceRectangle, SpriteEffects spriteEffects, Color color, float rotation, Vector2 origin, Vector2 scale ) : void
position Vector2
texture Microsoft.Xna.Framework.Graphics.Texture2D
width int
height int
sourceRectangle Microsoft.Xna.Framework.Rectangle
spriteEffects SpriteEffects
color Color
rotation float
origin Vector2
scale Vector2
return void

RawDraw() public method

public RawDraw ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, float rotation, Vector2 origin, Color color, float scaleX = 1, float scaleY = 1 ) : void
position Vector2
texture Microsoft.Xna.Framework.Graphics.Texture2D
width int
height int
rotation float
origin Vector2
color Color
scaleX float
scaleY float
return void

RenderManager() public method

public RenderManager ( ) : System
return System

SetRenderTarget() public method

public SetRenderTarget ( RenderTarget2D renderTarget ) : void
renderTarget Microsoft.Xna.Framework.Graphics.RenderTarget2D
return void

cameraOffset() public method

public cameraOffset ( ) : Vector2
return Vector2