Example #1
0
        internal static void DrawSprite(Texture texture, Vector2 position, Rectangle?sourceRectangle, Color color, Vector2 rightVector, Vector2 origin, float scale, VRageRender.Graphics.SpriteEffects effects, float layerDepth)
        {
            var destination = new RectangleF(position.X, position.Y, scale, scale);

            DrawSprite(texture, null, ref destination, true, ref sourceRectangle, color, rightVector, ref origin, effects, layerDepth);
        }
Example #2
0
 internal static void DrawSprite(BaseTexture texture, CubeMapFace?face, ref RectangleF destination, bool scaleDestination, ref Rectangle?sourceRectangle, Color color, Vector2 rightVector, ref Vector2 origin, VRageRender.Graphics.SpriteEffects effects, float depth)
 {
     DrawSpriteMain(texture, face, ref destination, scaleDestination, sourceRectangle, color, rightVector, ref origin, effects, depth);
 }
Example #3
0
 //  Draws sprite batch at specified SCREEN position (in screen coordinates, not normalized coordinates).
 internal static void DrawSpriteBatch(Texture texture, Vector2 position, Rectangle?sourceRectangle, Color color, Vector2 rightVector, Vector2 origin, float scale, VRageRender.Graphics.SpriteEffects effects, float layerDepth)
 {
     //m_spriteBatch.Draw(texture, SharpDXHelper.ToSharpDX(position), SharpDXHelper.ToSharpDX(sourceRectangle), SharpDXHelper.ToSharpDX(color), rotation, SharpDXHelper.ToSharpDX(origin), scale, effects, layerDepth);
     DrawSprite(texture, position, sourceRectangle, color, rightVector, origin, scale, effects, layerDepth);
 }