C# Class hyades.graphics.ModelRenderer

Afficher le fichier Open project: zfedoran/bubblebound Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

Add() public méthode

public Add ( Model model, Matrix &transform ) : void
model Microsoft.Xna.Framework.Graphics.Model
transform Matrix
Résultat void

Add() public méthode

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
Résultat void

Begin() public méthode

public Begin ( Camera camera ) : void
camera Camera
Résultat void

Begin() public méthode

public Begin ( Camera camera, Color color ) : void
camera Camera
color Color
Résultat void

End() public méthode

public End ( ) : void
Résultat void

GetInstance() public static méthode

public static GetInstance ( GraphicsDevice device ) : ModelRenderer
device GraphicsDevice
Résultat ModelRenderer

ModelRenderer() public méthode

public ModelRenderer ( GraphicsDevice device ) : System
device GraphicsDevice
Résultat System