C# Class SuperCaissiere.Engine.Graphics.Model3DRenderer

Exibir arquivo Open project: valryon/super-caissiere Class Usage Examples

Public Methods

Method Description
Draw ( ) : void
Model3DRenderer ( GraphicsDevice _dev, SuperCaissiere.Engine.Graphics.SpriteBatchProxy _sprbtch, Matrix _proj, Matrix _view, Matrix _world ) : System
Update ( GameTime gameTime ) : void
isClicked ( int mouseX, int mouseY ) : bool
resetRotate ( ) : void
rotateX ( float x ) : void
rotateY ( float y ) : void
rotateZ ( float z ) : void
setModel ( Model _model, Model _modelcol ) : void

Protected Methods

Method Description
sceneToTexture ( ) : Microsoft.Xna.Framework.Graphics.Texture2D

Private Methods

Method Description
TextureTo2DArray ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Color[]
draw ( Model _m ) : void
getRandomRotation ( ) : void

Method Details

Draw() public method

public Draw ( ) : void
return void

Model3DRenderer() public method

public Model3DRenderer ( GraphicsDevice _dev, SuperCaissiere.Engine.Graphics.SpriteBatchProxy _sprbtch, Matrix _proj, Matrix _view, Matrix _world ) : System
_dev GraphicsDevice
_sprbtch SuperCaissiere.Engine.Graphics.SpriteBatchProxy
_proj Matrix
_view Matrix
_world Matrix
return System

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

isClicked() public method

public isClicked ( int mouseX, int mouseY ) : bool
mouseX int
mouseY int
return bool

resetRotate() public method

public resetRotate ( ) : void
return void

rotateX() public method

public rotateX ( float x ) : void
x float
return void

rotateY() public method

public rotateY ( float y ) : void
y float
return void

rotateZ() public method

public rotateZ ( float z ) : void
z float
return void

sceneToTexture() protected method

protected sceneToTexture ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
return Microsoft.Xna.Framework.Graphics.Texture2D

setModel() public method

public setModel ( Model _model, Model _modelcol ) : void
_model Microsoft.Xna.Framework.Graphics.Model
_modelcol Microsoft.Xna.Framework.Graphics.Model
return void