Пример #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();
 }
Пример #2
0
 /// <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();
 }