Свойство | Type | Description | |
---|---|---|---|
BackgroundColor | Color | ||
Canvas | ICanvas | ||
CanvasTouchPoints | List |
||
DeviceScale | int | ||
GraphicsDeviceManager | GraphicsDeviceManager | ||
GraphicsDisplay | IGraphicsDisplay | ||
ImageStateData | |||
InMemoryCanvasRenderTarget | |||
InMemoryToolboxRenderTarget | |||
InitialDraw | bool | ||
SpriteBatch | |||
ToolBox | IToolBox | ||
ToolboxLayoutDefinition |
Méthode | Description | |
---|---|---|
BaseGame ( |
Initializes a new instance of the Paint.BaseGame class.
|
Méthode | Description | |
---|---|---|
BlankRenderTarget ( |
Blanks the render target.
|
|
CheckToolboxCollision ( ITouchPoint touchPoint ) : bool |
Checks whether the user has touched inside the toolbox
|
|
ConvertGestureType ( GestureType gestureType ) : TouchType |
Converts a MonoGame.GestureType into our TouchType representation
|
|
ConvertScreenTouchToCanvasTouch ( |
Converts the screen touchpoint to a canvas touchpoint - i.e. alters the position of the touch to take into account the position and size of the toolbox
|
|
CreateRenderTargets ( ) : void |
Creates the canvas.
|
|
CreateToolbox ( ) : IToolBox |
Creates the toolbox.
|
|
Draw ( |
Called everytime we need to redraw the screen
|
|
Initialize ( ) : void |
Enable the capturing of gestures on the device
|
|
LoadContent ( ) : void |
We load any content we need at the beginning of the application life cycle. Also anything that needs initialising is done here
|
Méthode | Description | |
---|---|---|
DrawCanvasOnScreen ( ) : void |
Draws the canvas on screen.
|
|
DrawToolboxOnScreen ( ) : void |
Draws the toolbox on screen.
|
public BaseGame ( |
||
imageStateData | ImageSaveData | |
toolboxLayoutDefinition | Layout of the toolbox | |
deviceScale | int | Layout of the toolbox |
Résultat | System |
protected BlankRenderTarget ( |
||
renderTarget | /// Render target. /// | |
Résultat | void |
protected CheckToolboxCollision ( ITouchPoint touchPoint ) : bool | ||
touchPoint | ITouchPoint | |
Résultat | bool |
protected ConvertGestureType ( GestureType gestureType ) : TouchType | ||
gestureType | GestureType | /// The monogame gesture type. /// |
Résultat | TouchType |
protected ConvertScreenTouchToCanvasTouch ( |
||
screenTouchPoint | ||
Résultat |
protected abstract CreateToolbox ( ) : IToolBox | ||
Résultat | IToolBox |
protected Draw ( |
||
gameTime | /// Allows you to monitor time passed since last draw /// | |
Résultat | void |
protected GraphicsDeviceManager GraphicsDeviceManager | ||
Résultat | GraphicsDeviceManager |
protected IGraphicsDisplay GraphicsDisplay | ||
Résultat | IGraphicsDisplay |
protected ImageStateData,Paint ImageStateData | ||
Résultat |
protected RenderTarget2D,Microsoft.Xna.Framework.Graphics InMemoryCanvasRenderTarget | ||
Résultat |
protected RenderTarget2D,Microsoft.Xna.Framework.Graphics InMemoryToolboxRenderTarget | ||
Résultat |
protected SpriteBatch,Microsoft.Xna.Framework.Graphics SpriteBatch | ||
Résultat |