Ejemplo n.º 1
0
 protected override void OnRender(SceneScreen screen)
 {
     if (Mesh != null)
     {
         if (Solid)
         {
             screen.RenderMesh(Mesh, WorldTransform);
         }
         if (Wireframe)
         {
             screen.Renderer.D3DContext.Rasterizer.State = screen.WireframeRasterizerState;
             screen.RenderMesh(Mesh, WorldTransform, screen.GetTexture("__blank"));
             screen.Renderer.D3DContext.Rasterizer.State = screen.DefaultRasterizerState;
         }
     }
 }
Ejemplo n.º 2
0
 public Frame(string animationFilename, Drome.IFLFile.IFLFrame frame, SceneScreen screen)
 {
     SRV    = screen.GetTexture(Path.Combine(Path.GetDirectoryName(animationFilename), frame.TextureFilename.Replace(".tga", "." + Drome.Context.Current.Platform.ToString() + " texture")));
     Length = frame.DurationTicks / 30.0f;
 }