- Main Page
- Packages
- Classes
- Files

- File List
- File Members

# D:/guillaume/guillara/3D/DXGfx/Backup/DXGfxLib/ObjectFromMeshRessource.cs

Go to the documentation of this file.

    00001 using System;
    00002 using System.Collections.Generic;
    00003 using System.Text;
    00004 using Microsoft.DirectX;
    00005 using Microsoft.DirectX.Direct3D;
    00006 using Microsoft.Samples.DirectX.UtilityToolkit;
    00007
    00008 namespace DXGfxLib
    00009 {
    00013     public class ObjectFromMeshRessource : MeshObject
    00014     {
    00019         protected MeshRessource meshRessource = null;
    00020
    00025         public void Attach(MeshRessource meshRessource)
    00026         {
    00027             this.meshRessource = meshRessource;
    00028             base.Attach(meshRessource.GetDXMesh());
    00029         }
    00030
    00031
    00032
    00038         public override void Draw(Device device)
    00039         {
    00040             device.SetTransform(TransformType.World, worldMat);
    00041             meshRessource.Draw(device);
    00042         }
    00043     }
    00044 }