public Sprite AddSprite(float width, float height,STYPE type, ORIPOINT ori,Camera cam, int uvStretch, float maxFps) { VertexSegment segment = GetVertices(4,6); Sprite s = new Sprite(segment, width, height, type, ori, cam,uvStretch, maxFps); //Debug.Log("|"+segment.VertStart + "," + segment.VertCount); return s; }
public XftSprite AddSprite(float width, float height, STYPE type, ORIPOINT ori, float maxFps, bool simple) { VertexSegment segment = GetVertices(4, 6); XftSprite s = new XftSprite(segment, width, height, type, ori, maxFps, simple); return(s); }
//NOTICE:SetType is called before Init()!!and called only once!like constructor. //sprite public void SetType(float width, float height, STYPE type, ORIPOINT orip, int uvStretch, float maxFps) { Type = 1; SimpleSprite = IsSimpleSprite(); //SimpleSprite = false; Sprite = Owner.GetVertexPool().AddSprite(width, height, type, orip, Owner.MyCamera, uvStretch, maxFps, SimpleSprite); }
public Sprite AddSprite(float width, float height, STYPE type, ORIPOINT ori, Camera cam, int uvStretch, float maxFps) { VertexSegment segment = GetVertices(4, 6); Sprite s = new Sprite(segment, width, height, type, ori, cam, uvStretch, maxFps); //Debug.Log("|"+segment.VertStart + "," + segment.VertCount); return(s); }
public Sprite(VertexPool.VertexSegment segment, float width, float height, STYPE type, ORIPOINT oripoint, Camera cam, int uvStretch, float maxFps) { this.MyTransform.position = Vector3.zero; this.MyTransform.rotation = Quaternion.identity; this.LocalMat = this.WorldMat = Matrix4x4.identity; this.Vertexsegment = segment; this.UVStretch = uvStretch; this.LastMat = Matrix4x4.identity; this.ElapsedTime = 0f; this.Fps = 1f / maxFps; this.OriPoint = oripoint; this.RotateAxis = Vector3.zero; this.SetSizeXZ(width, height); this.RotateAxis.y = 1f; this.Type = type; this.MainCamera = cam; this.ResetSegment(); }
public Sprite(VertexPool.VertexSegment segment, float width, float height, STYPE type, ORIPOINT oripoint, Camera cam, int uvStretch, float maxFps) { UVChanged = (ColorChanged = false); MyTransform.position = Vector3.zero; MyTransform.rotation = Quaternion.identity; LocalMat = (WorldMat = Matrix4x4.identity); Vertexsegment = segment; UVStretch = uvStretch; LastMat = Matrix4x4.identity; ElapsedTime = 0f; Fps = 1f / maxFps; OriPoint = oripoint; RotateAxis = Vector3.zero; SetSizeXZ(width, height); RotateAxis.y = 1f; Type = type; MainCamera = cam; ResetSegment(); }
public XftSprite(VertexPool.VertexSegment segment, float width, float height, STYPE type, ORIPOINT oripoint, float maxFps, bool simple) { UVChanged = ColorChanged = false; MyTransform.position = Vector3.zero; MyTransform.rotation = Quaternion.identity; LocalMat = WorldMat = Matrix4x4.identity; Vertexsegment = segment; //UVStretch = uvStretch; LastMat = Matrix4x4.identity; ElapsedTime = 0f; //Fps = 1f / maxFps; Simple = simple; OriPoint = oripoint; RotateAxis = Vector3.zero; SetSizeXZ(width, height); RotateAxis.y = 1; Type = type; ResetSegment(); }
public XEffectSprite(VertexPool.VertexSegment segment, float width, float height, STYPE type,ORIPOINT oripoint, Camera cam,int uvStretch,float maxFps) { UVChanged = ColorChanged = false; MyTransform.position = Vector3.zero; MyTransform.rotation = Quaternion.identity; LocalMat = WorldMat = Matrix4x4.identity; Vertexsegment = segment; UVStretch = uvStretch; LastMat = Matrix4x4.identity; ElapsedTime = 0f; Fps = 1f / maxFps; OriPoint = oripoint; RotateAxis = Vector3.zero; SetSizeXZ(width, height); RotateAxis.y = 1; Type = type; MainCamera = cam; ResetSegment(); }
public XftSprite AddSprite(float width, float height, STYPE type, ORIPOINT ori, float maxFps, bool simple) { VertexSegment segment = GetVertices(4, 6); XftSprite s = new XftSprite(segment, width, height, type, ori, maxFps, simple); return s; }
public Sprite AddSprite(float width, float height, STYPE type, ORIPOINT ori, Camera cam, int uvStretch, float maxFps) { VertexSegment vertices = GetVertices(4, 6); return(new Sprite(vertices, width, height, type, ori, cam, uvStretch, maxFps)); }
public void SetType(float width, float height, STYPE type, ORIPOINT orip, int uvStretch, float maxFps) { Type = 1; Sprite = Owner.GetVertexPool().AddSprite(width, height, type, orip, Camera.main, uvStretch, maxFps); }
public void SetType(float width, float height, STYPE type, ORIPOINT orip, int uvStretch, float maxFps) { this.Type = 1; this.Sprite = this.Owner.GetVertexPool().AddSprite(width, height, type, orip, IN_GAME_MAIN_CAMERA.BaseCamera, uvStretch, maxFps); }
public Sprite AddSprite(float width, float height, STYPE type, ORIPOINT ori, Camera cam, int uvStretch, float maxFps) { return(new Sprite(this.GetVertices(4, 6), width, height, type, ori, cam, uvStretch, maxFps)); }
//NOTICE:SetType is called before Init()!!and called only once!like constructor. //sprite public void SetType(float width, float height, STYPE type, ORIPOINT orip, int uvStretch, float maxFps) { Type = 1; SimpleSprite = IsSimpleSprite(); //SimpleSprite = false; Sprite = Owner.GetVertexPool().AddSprite(width, height, type, orip, Owner.MyCamera, uvStretch, maxFps,SimpleSprite); Sprite.Owner = this; }
//sprite public void SetType(float width, float height, STYPE type, ORIPOINT orip, int uvStretch, float maxFps) { Type = 1; Sprite = Owner.GetVertexPool().AddSprite(width, height, type, orip, Camera.main, uvStretch, maxFps); }