public static void DrawAtlasREPEAT(hgRect r, float z, Vector2 offset, hgAtlasInfoData atlasInfo, string atlasPartName, int colorIndex, MeshSet meshSet, int boneIndex) { Vector3[] vs = r.GetVector3Positions(z); Vector2[] atlasUvs; Vector2 perfectSize; atlasInfo.GetRectOneMesh(atlasPartName, out perfectSize, out atlasUvs); hgMeshAtlas.DrawAtlas_REPEAT(atlasUvs, perfectSize, offset, meshSet, boneIndex, vs, colorIndex); }
public static void DrawAtlasFrame(hgRect r, float z, hgAtlasInfoData atlasInfo, string atlasPartName, int colorIndex, MeshSet meshSet, int boneIndex, int[] edgeSize) { Vector3[] vs = r.GetVector3Positions(z); Vector2[] atlasUvs; hgAtlasInfoData.RECTPATTERN pattern; Vector2 perfectSize; atlasInfo.GetRectForceEdgeSize(atlasPartName, edgeSize, out perfectSize, out atlasUvs, out pattern); hgMeshAtlas.DrawAtlas_Sub4(pattern, atlasUvs, edgeSize, perfectSize, meshSet, boneIndex, vs, colorIndex, hgAtlasInfoData.StrechMode.STRECH_CENTER, true); }
public static void DrawAtlas(hgRect r, float z, hgAtlasInfoData atlasInfo, string atlasPartName, int colorIndex, MeshSet meshSet, int boneIndex, bool frameOnly /*= false*/) { Vector3[] vs = r.GetVector3Positions(z); Vector2[] atlasUvs; int[] size; hgAtlasInfoData.RECTPATTERN pattern; hgAtlasInfoData.StrechMode strechmode; Vector2 perfectSize; atlasInfo.GetRect(atlasPartName, out perfectSize, out atlasUvs, out pattern, out size, out strechmode); hgMeshAtlas.DrawAtlas_Sub4(pattern, atlasUvs, size, perfectSize, meshSet, boneIndex, vs, colorIndex, strechmode, frameOnly); }