C# Class Nez3D.Model3D

Model3D represents a normal 3D Model but it is rendered by a standard Nez Camera on the same plane as all the 2D sprites. For this reason, the Model is inflated by a scale of 80 by default. This keeps the Model at approximately the same scale as 2D sprites. You can adjust this via the Vector3s present in this class (which replace the 2D Transform) and the 3D Camera fields (which are all suffixed with "3D").
Inheritance: Nez.Renderable3D
Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Méthode Description
Model3D ( Model model, Microsoft.Xna.Framework.Graphics.Texture2D texture = null ) : Microsoft.Xna.Framework.Graphics
enableDefaultLighting ( ) : Model3D
render ( Graphics graphics, Camera camera ) : void

Method Details

Model3D() public méthode

public Model3D ( Model model, Microsoft.Xna.Framework.Graphics.Texture2D texture = null ) : Microsoft.Xna.Framework.Graphics
model Microsoft.Xna.Framework.Graphics.Model
texture Microsoft.Xna.Framework.Graphics.Texture2D
Résultat Microsoft.Xna.Framework.Graphics

enableDefaultLighting() public méthode

public enableDefaultLighting ( ) : Model3D
Résultat Model3D

render() public méthode

public render ( Graphics graphics, Camera camera ) : void
graphics Nez.Graphics
camera Nez.Camera
Résultat void