C# 클래스 hyades.graphics.ModelRenderer

파일 보기 프로젝트 열기: zfedoran/bubblebound 1 사용 예제들

공개 메소드들

메소드 설명
Add ( Model model, Matrix &transform ) : void
Add ( Model model, float x, float y, float z, float scale, float rotation_x, float rotation_y, float rotation_z ) : void
Begin ( Camera camera ) : void
Begin ( Camera camera, Color color ) : void
End ( ) : void
GetInstance ( GraphicsDevice device ) : ModelRenderer
ModelRenderer ( GraphicsDevice device ) : System

비공개 메소드들

메소드 설명
DrawModelHardwareInstancing ( Model model, Matrix modelBones, Matrix instances ) : void

Efficiently draws several copies of a piece of geometry using hardware instancing.

DrawModelNoInstancing ( Model model, Matrix modelBones, Matrix instances ) : void

Draws several copies of a piece of geometry without using any special GPU instancing techniques at all. This just does a regular loop and issues several draw calls one after another.

DrawModels ( ) : void
SetEffectParameters ( Effect effect ) : void

메소드 상세

Add() 공개 메소드

public Add ( Model model, Matrix &transform ) : void
model Microsoft.Xna.Framework.Graphics.Model
transform Matrix
리턴 void

Add() 공개 메소드

public Add ( Model model, float x, float y, float z, float scale, float rotation_x, float rotation_y, float rotation_z ) : void
model Microsoft.Xna.Framework.Graphics.Model
x float
y float
z float
scale float
rotation_x float
rotation_y float
rotation_z float
리턴 void

Begin() 공개 메소드

public Begin ( Camera camera ) : void
camera Camera
리턴 void

Begin() 공개 메소드

public Begin ( Camera camera, Color color ) : void
camera Camera
color Color
리턴 void

End() 공개 메소드

public End ( ) : void
리턴 void

GetInstance() 공개 정적인 메소드

public static GetInstance ( GraphicsDevice device ) : ModelRenderer
device GraphicsDevice
리턴 ModelRenderer

ModelRenderer() 공개 메소드

public ModelRenderer ( GraphicsDevice device ) : System
device GraphicsDevice
리턴 System