C# 클래스 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").
상속: Nez.Renderable3D
파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
Model3D ( Model model, Microsoft.Xna.Framework.Graphics.Texture2D texture = null ) : Microsoft.Xna.Framework.Graphics
enableDefaultLighting ( ) : Model3D
render ( Graphics graphics, Camera camera ) : void

메소드 상세

Model3D() 공개 메소드

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
리턴 Microsoft.Xna.Framework.Graphics

enableDefaultLighting() 공개 메소드

public enableDefaultLighting ( ) : Model3D
리턴 Model3D

render() 공개 메소드

public render ( Graphics graphics, Camera camera ) : void
graphics Nez.Graphics
camera Nez.Camera
리턴 void