Exemple #1
0
 public void Draw(gxtGraphicsBatch graphicsBatch, ref Vector2 position, float rotation, ref Vector2 scale, SpriteEffects spriteEffects)
 {
     if (material != null)
     {
         if (material.Visible)
         {
             graphicsBatch.DrawUserIndexedPrimitives(PrimitiveType.LineList, null, vertices, indices, primitiveCount, ref position, ref scale, rotation, spriteEffects, material.RenderDepth);
         }
     }
     else
     {
         if (gxtMaterial.DEFAULT_VISIBILITY)
         {
             graphicsBatch.DrawUserIndexedPrimitives(PrimitiveType.LineList, null, vertices, indices, primitiveCount, ref position, ref scale, rotation, spriteEffects, gxtMaterial.DEFAULT_RENDER_DEPTH);
         }
         gxtLog.WriteLineV(gxtVerbosityLevel.WARNING, "No material attached to an instance of gxtLineList!  Pos: {0, 1}", position.X, position.Y);
         // draw NO MATERIAL with the debug drawer's debug spritefont?
     }
 }
Exemple #2
0
 public void Draw(gxtGraphicsBatch graphicsBatch, ref Matrix transform)
 {
     if (material != null)
     {
         if (material.Visible)
         {
             graphicsBatch.DrawUserIndexedPrimitives(PrimitiveType.LineList, null, vertices, indices, primitiveCount, ref transform, material.RenderDepth);
         }
     }
     else
     {
         if (gxtMaterial.DEFAULT_VISIBILITY)
         {
             graphicsBatch.DrawUserIndexedPrimitives(PrimitiveType.LineList, null, vertices, indices, primitiveCount, ref transform, gxtMaterial.DEFAULT_RENDER_DEPTH);
         }
         gxtLog.WriteLineV(gxtVerbosityLevel.WARNING, "No material attached to an instance of gxtLineList!  Pos: {0, 1}", transform.M14, transform.M24);
         // draw NO MATERIAL with the debug drawer's debug spritefont?
     }
 }
 public void Draw(gxtGraphicsBatch graphicsBatch, ref Matrix transform)
 {
     if (material != null)
     {
         if (material.Visible)
             graphicsBatch.DrawUserIndexedPrimitives(primitiveType, texture, vertices, indices, primitiveCount, ref transform, material.RenderDepth);
     }
     else
     {
         if (gxtMaterial.DEFAULT_VISIBILITY)
             graphicsBatch.DrawUserIndexedPrimitives(primitiveType, texture, vertices, indices, primitiveCount, ref transform, gxtMaterial.DEFAULT_RENDER_DEPTH);
         gxtLog.WriteLineV(gxtVerbosityLevel.CRITICAL, "No material attached to the indexed primitive!  Pos: {0, 1}", transform.M14, transform.M24);
         // draw NO MATERIAL with the debug drawer's debug spritefont?
     }
 }