示例#1
0
 static public void DrawPass(SpriteMeshObject spriteMeshObject, SpriteRenderer spriteRenderer, Vector2 pos, Vector2 size, float rotation)
 {
     if (spriteRenderer.drawMode == SpriteDrawMode.Tiled && spriteRenderer.tileMode == SpriteTileMode.Continuous)
     {
         Tiled.DrawPass(spriteMeshObject, spriteRenderer, pos, size, rotation);
     }
     else
     {
         Simple.DrawPass(spriteMeshObject, spriteRenderer, pos, size, rotation);
     }
 }
示例#2
0
        static public void Draw(SpriteMeshObject spriteMeshObject, Material material, SpriteRenderer spriteRenderer, Vector2 position, Vector2 scale, float rotation)
        {
            if (spriteRenderer == null)
            {
                return;
            }

            if (spriteRenderer.sprite == null)
            {
                return;
            }

            //if (spriteRenderer.sprite.packingMode == SpritePackingMode.Tight) {
            // FullRect.Draw(spriteMeshObject, material, spriteRenderer, position, scale,  rotation);
            //} else {
            FullRect.Draw(spriteMeshObject, material, spriteRenderer, position, scale, rotation);
            //}
        }
示例#3
0
 static public void DrawPass(SpriteMeshObject spriteMeshObject, SpriteRenderer spriteRenderer, Vector2 pos, Vector2 size, float rotation)
 {
     GLExtended.DrawMesh(spriteMeshObject.GetTiledMesh().GetMesh(spriteRenderer), pos, size, rotation);
 }
示例#4
0
 static public void Draw(SpriteMeshObject spriteMeshObject, Material material, SpriteRenderer spriteRenderer, Vector2 pos, Vector2 size, float rotation)
 {
     material.SetPass(0);
     GLExtended.DrawMesh(spriteMeshObject.GetTiledMesh().GetMesh(spriteRenderer), pos, size, rotation);
 }
示例#5
0
                static public void Draw(SpriteMeshObject spriteMeshObject, Material material, VirtualSpriteRenderer spriteRenderer, Vector2 position, Vector2 scale, float rotation)
                {
                    SpriteTransform spriteTransform = new SpriteTransform(spriteRenderer, position, scale, rotation);

                    Texture.Draw(material, spriteTransform.position, spriteTransform.scale, spriteTransform.uv, rotation, 0);
                }
示例#6
0
                static public void Draw(SpriteMeshObject spriteMeshObject, Material material, SpriteRenderer spriteRenderer, Vector2 position, Vector2 scale, float rotation)
                {
                    virtualSpriteRenderer.Set(spriteRenderer);

                    Draw(spriteMeshObject, material, virtualSpriteRenderer, position, scale, rotation);
                }
示例#7
0
                static public void DrawPass(SpriteMeshObject spriteMeshObject, SpriteRenderer spriteRenderer, Vector2 position, Vector2 scale, float rotation)
                {
                    virtualSpriteRenderer.Set(spriteRenderer);

                    DrawPass(spriteMeshObject, virtualSpriteRenderer, position, scale, rotation);
                }