C# Class PsmFramework.Engines.DrawEngine2d.Drawables.SpriteDrawableBase

Inheritance: DrawableBase
Show file Open project: artwallace/PsmFramework

Public Properties

Property Type Description
DefaultRotation Angle2

Protected Properties

Property Type Description
DefaultPosition Coordinate2
Shader PsmFramework.Engines.DrawEngine2d.Shaders.SpriteShader

Public Methods

Method Description
SetColorsToDefault ( ) : void
SpriteDrawableBase ( LayerBase layer ) : System

Protected Methods

Method Description
AdjustPosition ( System.Single horizontal, System.Single vertical ) : void
AdjustRotation ( Angle2 angle ) : void
CleanupIntermediary ( ) : void
InitializeIntermediary ( ) : void
SetDimensions ( ) : void
SetDimensionsByScale ( System.Single scale ) : void
SetDimensionsProportionallyByHeight ( System.Single height ) : void
SetDimensionsProportionallyByWidth ( System.Single width ) : void
SetNaturalDimensions ( System.Single width, System.Single height ) : void
SetPosition ( Coordinate2 position, RelativePosition relativeTo = RelativePosition.Center ) : void
SetPosition ( System.Single x, System.Single y, RelativePosition relativeTo = RelativePosition.Center ) : void
SetRotation ( Angle2 angle ) : void

Private Methods

Method Description
CleanupColors ( ) : void
CleanupDimensions ( ) : void
CleanupPosition ( ) : void
CleanupRotation ( ) : void
CleanupShaderProgram ( ) : void
InitializeColors ( ) : void
InitializeDimensions ( ) : void
InitializePosition ( ) : void
InitializeRotation ( ) : void
InitializeShaderProgram ( ) : void

Method Details

AdjustPosition() protected method

protected AdjustPosition ( System.Single horizontal, System.Single vertical ) : void
horizontal System.Single
vertical System.Single
return void

AdjustRotation() protected method

protected AdjustRotation ( Angle2 angle ) : void
angle Angle2
return void

CleanupIntermediary() protected method

protected CleanupIntermediary ( ) : void
return void

InitializeIntermediary() protected method

protected InitializeIntermediary ( ) : void
return void

SetColorsToDefault() public method

public SetColorsToDefault ( ) : void
return void

SetDimensions() protected method

protected SetDimensions ( ) : void
return void

SetDimensionsByScale() protected method

protected SetDimensionsByScale ( System.Single scale ) : void
scale System.Single
return void

SetDimensionsProportionallyByHeight() protected method

protected SetDimensionsProportionallyByHeight ( System.Single height ) : void
height System.Single
return void

SetDimensionsProportionallyByWidth() protected method

protected SetDimensionsProportionallyByWidth ( System.Single width ) : void
width System.Single
return void

SetNaturalDimensions() protected method

protected SetNaturalDimensions ( System.Single width, System.Single height ) : void
width System.Single
height System.Single
return void

SetPosition() protected method

protected SetPosition ( Coordinate2 position, RelativePosition relativeTo = RelativePosition.Center ) : void
position Coordinate2
relativeTo RelativePosition
return void

SetPosition() protected method

protected SetPosition ( System.Single x, System.Single y, RelativePosition relativeTo = RelativePosition.Center ) : void
x System.Single
y System.Single
relativeTo RelativePosition
return void

SetRotation() protected method

protected SetRotation ( Angle2 angle ) : void
angle Angle2
return void

SpriteDrawableBase() public method

public SpriteDrawableBase ( LayerBase layer ) : System
layer PsmFramework.Engines.DrawEngine2d.Layers.LayerBase
return System

Property Details

DefaultPosition protected property

protected Coordinate2 DefaultPosition
return Coordinate2

DefaultRotation public property

public Angle2 DefaultRotation
return Angle2

Shader protected property

protected SpriteShader,PsmFramework.Engines.DrawEngine2d.Shaders Shader
return PsmFramework.Engines.DrawEngine2d.Shaders.SpriteShader