Exemplo n.º 1
0
 public override void Draw(gxtGraphicsBatch graphicsBatch)
 {
     //camera.Position = Vector2.Zero;
     //gxtLog.WriteLineV(gxtVerbosityLevel.INFORMATIONAL, camera.Position.ToString());
     graphicsBatch.Begin(gxtBatchDrawOrder.PRIMITIVES_FIRST, gxtBatchSortMode.TEXTURE, gxtBatchDepthMode.FRONT_TO_BACK, camera.GetTransform());
     sceneGraph.Draw(graphicsBatch);
     graphicsBatch.End();
 }
Exemplo n.º 2
0
Arquivo: gxtWorld.cs Projeto: Loko/GXT
 /// <summary>
 /// Draws everything in the world scene graph relative to the camera
 /// </summary>
 /// <param name="spriteBatch">SpriteBatch</param>
 public virtual void Draw(gxtGraphicsBatch graphicsBatch)
 {
     gxtDebug.SlowAssert(IsInitialized() && sceneGraph.IsInitialized());
     graphicsBatch.Begin(gxtBatchDrawOrder.PRIMITIVES_FIRST, gxtBatchSortMode.TEXTURE, gxtBatchDepthMode.FRONT_TO_BACK, camera.GetTransform());
     sceneGraph.Draw(graphicsBatch);
     graphicsBatch.End();
 }