示例#1
0
 internal static extern void Internal_DrawSpritePoint(ref SpriteHandle spriteHandle, ref Rectangle rect, ref Color color);
示例#2
0
 /// <summary>
 /// Draws a sprite (uses point sampler).
 /// </summary>
 /// <param name="spriteHandle">The sprite to draw.</param>
 /// <param name="rect">The rectangle to draw.</param>
 /// <param name="color">The color to multiply all texture pixels.</param>
 public static void DrawSpritePoint(SpriteHandle spriteHandle, Rectangle rect, Color color)
 {
     Internal_DrawSpritePoint(ref spriteHandle, ref rect, ref color);
 }
 internal static extern void Internal_AddSprite(IntPtr obj, ref Sprite sprite, out SpriteHandle resultAsRef);
示例#4
0
        /// <summary>
        /// Draws a sprite (uses point sampler).
        /// </summary>
        /// <param name="spriteHandle">The sprite to draw.</param>
        /// <param name="rect">The rectangle to draw.</param>
        public static void DrawSpritePoint(SpriteHandle spriteHandle, Rectangle rect)
        {
            var color = Color.White;

            Internal_DrawSpritePoint(ref spriteHandle, ref rect, ref color);
        }
 internal static extern void Internal_FindSprite(IntPtr obj, string name, out SpriteHandle resultAsRef);