C# Класс MilkShakeFramework.Render.RenderManager

Наследование: MilkShakeFramework.Core.Scenes.Components.SceneComponent
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

Begin() публичный Метод

public Begin ( BlendState blendState ) : void
blendState Microsoft.Xna.Framework.Graphics.BlendState
Результат void

Begin() публичный Метод

public Begin ( Effect effect = null ) : void
effect Microsoft.Xna.Framework.Graphics.Effect
Результат void

Begin() публичный Метод

public Begin ( Effect effect, BlendState blend ) : void
effect Microsoft.Xna.Framework.Graphics.Effect
blend Microsoft.Xna.Framework.Graphics.BlendState
Результат void

Begin() публичный Метод

public Begin ( Matrix matrix ) : void
matrix Matrix
Результат void

Draw() публичный Метод

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
Результат void

Draw() публичный Метод

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
Результат void

Draw() публичный Метод

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
Результат void

Draw() публичный Метод

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
Результат void

End() публичный Метод

public End ( ) : void
Результат void

RawBegin() публичный Метод

public RawBegin ( ) : void
Результат void

RawDraw() публичный Метод

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
Результат void

RawDraw() публичный Метод

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
Результат void

RawDraw() публичный Метод

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
Результат void

RenderManager() публичный Метод

public RenderManager ( ) : System
Результат System

SetRenderTarget() публичный Метод

public SetRenderTarget ( RenderTarget2D renderTarget ) : void
renderTarget Microsoft.Xna.Framework.Graphics.RenderTarget2D
Результат void

cameraOffset() публичный Метод

public cameraOffset ( ) : Vector2
Результат Vector2