Example #1
0
 public void Draw(gxtGraphicsBatch graphicsBatch, ref Matrix transform)
 {
     if (material != null)
     {
         if (material.Visible)
         {
             graphicsBatch.DrawIndexedPrimitives(PrimitiveType.LineList, null, vertexBuffer, indexBuffer, primitiveCount, ref transform, material.RenderDepth);
         }
     }
     else
     {
         if (gxtMaterial.DEFAULT_VISIBILITY)
         {
             graphicsBatch.DrawIndexedPrimitives(PrimitiveType.LineList, null, vertexBuffer, indexBuffer, 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?
     }
 }
Example #2
0
 public void Draw(gxtGraphicsBatch graphicsBatch, ref Vector2 position, float rotation, ref Vector2 scale, SpriteEffects spriteEffects)
 {
     if (material != null)
     {
         if (material.Visible)
         {
             graphicsBatch.DrawIndexedPrimitives(PrimitiveType.LineList, null, vertexBuffer, indexBuffer, primitiveCount, ref position, ref scale, rotation, spriteEffects, material.RenderDepth);
         }
     }
     else
     {
         if (gxtMaterial.DEFAULT_VISIBILITY)
         {
                 graphicsBatch.DrawIndexedPrimitives(PrimitiveType.LineList, null, vertexBuffer, indexBuffer, 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?
     }
 }
Example #3
0
 public void Draw(gxtGraphicsBatch graphicsBatch, ref Vector2 position, float rotation, ref Vector2 scale, SpriteEffects spriteEffects)
 {
     if (material != null)
     {
         if (material.Visible)
             graphicsBatch.DrawIndexedPrimitives(PrimitiveType.TriangleList, texture, vertexBuffer, indexBuffer, primitiveCount, ref position, ref scale, rotation, spriteEffects, material.RenderDepth);
     }
     else
     {
         if (gxtMaterial.DEFAULT_VISIBILITY)
             graphicsBatch.DrawIndexedPrimitives(PrimitiveType.TriangleList, texture, vertexBuffer, indexBuffer, primitiveCount, ref position, ref scale, rotation, spriteEffects, gxtMaterial.DEFAULT_RENDER_DEPTH);
         gxtLog.WriteLineV(gxtVerbosityLevel.CRITICAL, "No material attached to an instance of gxtMesh!  Pos: {0, 1}", position.X, position.Y);
     }
 }
Example #4
0
 public void Draw(gxtGraphicsBatch graphicsBatch, ref Matrix transform)
 {
     if (material != null)
     {
         if (material.Visible)
         {
             if (circleDrawMode == gxtCircleDrawMode.CIRCLE)
                 graphicsBatch.DrawIndexedPrimitives(PrimitiveType.TriangleList, gxtPrimitiveManager.Singleton.CircleTexture, vertexBuffer, indexBuffer, 2, ref transform, material.RenderDepth);
             else
                 graphicsBatch.DrawIndexedPrimitives(PrimitiveType.TriangleList, gxtPrimitiveManager.Singleton.CircleShellTexture, vertexBuffer, indexBuffer, 2, ref transform, material.RenderDepth);
         }
     }
     else
     {
         if (gxtMaterial.DEFAULT_VISIBILITY)
         {
             if (circleDrawMode == gxtCircleDrawMode.CIRCLE)
                 graphicsBatch.DrawIndexedPrimitives(PrimitiveType.TriangleList, gxtPrimitiveManager.Singleton.CircleTexture, vertexBuffer, indexBuffer, 2, ref transform, gxtMaterial.DEFAULT_RENDER_DEPTH);
             else
                 graphicsBatch.DrawIndexedPrimitives(PrimitiveType.TriangleList, gxtPrimitiveManager.Singleton.CircleShellTexture, vertexBuffer, indexBuffer, 2, ref transform, gxtMaterial.DEFAULT_RENDER_DEPTH);
         }
         gxtLog.WriteLineV(gxtVerbosityLevel.CRITICAL, "No material attached to an instance of gxtCircle!  Pos: {0, 1}", transform.M14, transform.M24);
         // draw NO MATERIAL with the debug drawer's debug spritefont?
     }
 }
Example #5
0
 public void Draw(gxtGraphicsBatch graphicsBatch, ref Vector2 position, float rotation, ref Vector2 scale, SpriteEffects spriteEffects)
 {
     if (material != null)
     {
         if (material.Visible)
         {
             if (circleDrawMode == gxtCircleDrawMode.CIRCLE)
                 graphicsBatch.DrawIndexedPrimitives(PrimitiveType.TriangleList, gxtPrimitiveManager.Singleton.CircleTexture, vertexBuffer, gxtPrimitiveManager.Singleton.QuadIndexBuffer, 2, ref position, ref scale, rotation, spriteEffects, material.RenderDepth);
             else
                 graphicsBatch.DrawIndexedPrimitives(PrimitiveType.TriangleList, gxtPrimitiveManager.Singleton.CircleShellTexture, vertexBuffer, gxtPrimitiveManager.Singleton.QuadIndexBuffer, 2, ref position, ref scale, rotation, spriteEffects, material.RenderDepth);
         }
     }
     else
     {
         if (gxtMaterial.DEFAULT_VISIBILITY)
         {
             if (circleDrawMode == gxtCircleDrawMode.CIRCLE)
                 graphicsBatch.DrawIndexedPrimitives(PrimitiveType.TriangleList, gxtPrimitiveManager.Singleton.CircleTexture, vertexBuffer, indexBuffer, 2, ref position, ref scale, rotation, spriteEffects, gxtMaterial.DEFAULT_RENDER_DEPTH);
             else
                 graphicsBatch.DrawIndexedPrimitives(PrimitiveType.TriangleList, gxtPrimitiveManager.Singleton.CircleShellTexture, vertexBuffer, indexBuffer, 2, ref position, ref scale, rotation, spriteEffects, gxtMaterial.DEFAULT_RENDER_DEPTH);
         }
         gxtLog.WriteLineV(gxtVerbosityLevel.CRITICAL, "No material attached to an instance of gxtCircle!  Pos: {0, 1}", position.X, position.Y);
         // draw NO MATERIAL with the debug drawer's debug spritefont?
     }
 }
Example #6
0
 public void Draw(gxtGraphicsBatch graphicsBatch, ref Matrix transform)
 {
     if (material != null)
     {
         if (material.Visible)
             graphicsBatch.DrawIndexedPrimitives(PrimitiveType.TriangleList, texture, vertexBuffer, indexBuffer, 2, ref transform, material.RenderDepth);
     }
     else
     {
         if (gxtMaterial.DEFAULT_VISIBILITY)
             graphicsBatch.DrawIndexedPrimitives(PrimitiveType.TriangleList, texture, vertexBuffer, indexBuffer, 2, ref transform, gxtMaterial.DEFAULT_RENDER_DEPTH);
         gxtLog.WriteLineV(gxtVerbosityLevel.CRITICAL, "No material attached to the gxtSprite!  Pos: {0, 1}", transform.M14, transform.M24);
         // draw NO MATERIAL with the debug drawer's debug spritefont?
     }
 }