C# Class NScumm.MonoGame.XnaGraphicsManager

Inheritance: Core.Graphics.IGraphicsManager, IDisposable
Mostra file Open project: scemino/nscumm Class Usage Examples

Public Methods

Method Description
Capture ( ) : Core.Graphics.Surface
CopyRectToScreen ( byte buffer, int sourceStride, int x, int y, int width, int height ) : void
CopyRectToScreen ( byte buffer, int startOffset, int sourceStride, int x, int y, int width, int height ) : void
CopyRectToScreen ( byte buffer, int sourceStride, int x, int y, int dstX, int dstY, int width, int height ) : void
Dispose ( ) : void
DrawCursor ( SpriteBatch spriteBatch, Vector2 cursorPos ) : void
DrawScreen ( SpriteBatch spriteBatch ) : void
FillScreen ( int color ) : void
GetPalette ( ) : Core.Graphics.Color[]
SetCursor ( byte pixels, int width, int height, NScumm.Core.Graphics.Point hotspot ) : void
SetCursor ( byte pixels, int offset, int width, int height, NScumm.Core.Graphics.Point hotspot, int keyColor ) : void
SetPalette ( Core colors ) : void
SetPalette ( Core colors, int first, int num ) : void
UpdateScreen ( ) : void
XnaGraphicsManager ( int width, int height, Core format, GameWindow window, GraphicsDevice device ) : Microsoft.Xna.Framework

Method Details

Capture() public method

public Capture ( ) : Core.Graphics.Surface
return Core.Graphics.Surface

CopyRectToScreen() public method

public CopyRectToScreen ( byte buffer, int sourceStride, int x, int y, int width, int height ) : void
buffer byte
sourceStride int
x int
y int
width int
height int
return void

CopyRectToScreen() public method

public CopyRectToScreen ( byte buffer, int startOffset, int sourceStride, int x, int y, int width, int height ) : void
buffer byte
startOffset int
sourceStride int
x int
y int
width int
height int
return void

CopyRectToScreen() public method

public CopyRectToScreen ( byte buffer, int sourceStride, int x, int y, int dstX, int dstY, int width, int height ) : void
buffer byte
sourceStride int
x int
y int
dstX int
dstY int
width int
height int
return void

Dispose() public method

public Dispose ( ) : void
return void

DrawCursor() public method

public DrawCursor ( SpriteBatch spriteBatch, Vector2 cursorPos ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
cursorPos Vector2
return void

DrawScreen() public method

public DrawScreen ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

FillScreen() public method

public FillScreen ( int color ) : void
color int
return void

GetPalette() public method

public GetPalette ( ) : Core.Graphics.Color[]
return Core.Graphics.Color[]

SetCursor() public method

public SetCursor ( byte pixels, int width, int height, NScumm.Core.Graphics.Point hotspot ) : void
pixels byte
width int
height int
hotspot NScumm.Core.Graphics.Point
return void

SetCursor() public method

public SetCursor ( byte pixels, int offset, int width, int height, NScumm.Core.Graphics.Point hotspot, int keyColor ) : void
pixels byte
offset int
width int
height int
hotspot NScumm.Core.Graphics.Point
keyColor int
return void

SetPalette() public method

public SetPalette ( Core colors ) : void
colors Core
return void

SetPalette() public method

public SetPalette ( Core colors, int first, int num ) : void
colors Core
first int
num int
return void

UpdateScreen() public method

public UpdateScreen ( ) : void
return void

XnaGraphicsManager() public method

public XnaGraphicsManager ( int width, int height, Core format, GameWindow window, GraphicsDevice device ) : Microsoft.Xna.Framework
width int
height int
format Core
window Microsoft.Xna.Framework.GameWindow
device GraphicsDevice
return Microsoft.Xna.Framework