当前位置: 首页>>代码示例>>C#>>正文


C# FAtlasElement类代码示例

本文整理汇总了C#中FAtlasElement的典型用法代码示例。如果您正苦于以下问题:C# FAtlasElement类的具体用法?C# FAtlasElement怎么用?C# FAtlasElement使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FAtlasElement类属于命名空间,在下文中一共展示了FAtlasElement类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SetHole1

 public void SetHole1(FAtlasElement holeElement,FAtlasElement toDigElement)
 {
     _elementHole1=holeElement;
     _elementToDig1=toDigElement;
     _hole1Offset=_elementHole1.uvTopLeft-_elementToDig1.uvTopLeft;
     needsApply = true;
 }
开发者ID:tanis2000,项目名称:Futile,代码行数:7,代码来源:JPShader.cs

示例2: SetHole0

 public void SetHole0(FAtlasElement holeElement,FAtlasElement toDigElement)
 {
     _elementHole0=holeElement;
     _elementToDig0=toDigElement;
     _hole0Offset=_elementHole0.uvTopLeft-_elementToDig0.uvTopLeft;
     needsApply = true;
 }
开发者ID:tanis2000,项目名称:Futile,代码行数:7,代码来源:JPShader.cs

示例3: Init

    protected void Init(FFacetType facetType, FAtlasElement element, int numberOfFacetsNeeded)
    {
        _element = element;

        base.Init(facetType,_element.atlas,numberOfFacetsNeeded);

        HandleElementChanged();
    }
开发者ID:maggardJosh,项目名称:OGREAT,代码行数:8,代码来源:FFacetNode.cs

示例4: UpdateToDig0

 public void UpdateToDig0(FAtlasElement toDigElement)
 {
     if (_elementHole0!=null) {
         _elementToDig0=toDigElement;
         _hole0Offset=_elementHole0.uvTopLeft-_elementToDig0.uvTopLeft;
         needsApply = true;
     }
 }
开发者ID:tanis2000,项目名称:Futile,代码行数:8,代码来源:JPShader.cs

示例5: FSplitSprite

    public FSplitSprite(FAtlasElement element)
        : base()
    {
        Init(FFacetType.Quad, element,0); //this will call HandleElementChanged(), which will call SetupSlices();

        _isAlphaDirty = true;

        UpdateLocalVertices();
    }
开发者ID:tanis2000,项目名称:Futile,代码行数:9,代码来源:FSplitSprite.cs

示例6: FFont

    public FFont(string name, FAtlasElement element, string configPath, FTextParams fontTextParams)
    {
        _name = name;
        _element = element;
        _configPath = configPath;
        _fontTextParams = fontTextParams;

        LoadAndParseConfigFile();
    }
开发者ID:GeekAndDad,项目名称:Futile,代码行数:9,代码来源:FFont.cs

示例7: WTAnimation

 public WTAnimation(string name, FAtlasElement[] spriteFrames, float minFrameDuration, float maxFrameDuration, bool isLooping)
 {
     this.spriteFrames = spriteFrames;
     this.name = name;
     this.isLooping = isLooping;
     this.minFrameDuration = minFrameDuration;
     this.maxFrameDuration = maxFrameDuration;
     this.frameDuration = this.minFrameDuration;
 }
开发者ID:wtrebella,项目名称:SuperBlackout,代码行数:9,代码来源:WTAnimation.cs

示例8: FSprite

	public FSprite (FAtlasElement element) : base()
	{
		_localVertices = new Vector2[4];
		
		Init(FFacetType.Quad, element,1);
		
		_isAlphaDirty = true;
		
		UpdateLocalVertices();
	}
开发者ID:maggardJosh,项目名称:NinjaCircuit,代码行数:10,代码来源:FSprite.cs

示例9: Init

	protected void Init(FMeshData meshData, FAtlasElement element)
	{
		_meshData = meshData;
		_previousMeshDataVersion = _meshData.version;
		
		Init(_meshData.facetType, element,meshData.facets.Count);

		_isMeshDirty = true;
		_isAlphaDirty = true;
	}
开发者ID:maggardJosh,项目名称:NinjaCircuit,代码行数:10,代码来源:FMeshNode.cs

示例10: AddElement

 //It's recommended to use myAtlas.CreateElement() instead of this
 public void AddElement(FAtlasElement element)
 {
     if(_allElementsByName.ContainsKey(element.name))
     {
         throw new FutileException("Duplicate element name '" + element.name +"' found! All element names must be unique!");
     }
     else
     {
         _allElementsByName.Add (element.name, element);
     }
 }
开发者ID:MattRix,项目名称:ScorekeeperX,代码行数:12,代码来源:FAtlasManager.cs

示例11: FFont

    public FFont(string name, FAtlasElement element, string configPath, float offsetX, float offsetY, FTextParams textParams)
    {
        _name = name;
        _element = element;
        _configPath = configPath;
        _textParams = textParams;
        _offsetX = offsetX;
        _offsetY = offsetY;

        LoadAndParseConfigFile();
    }
开发者ID:MrPhil,项目名称:Futile,代码行数:11,代码来源:FFont.cs

示例12: FShadowSprite

    public FShadowSprite(FAtlasElement element, float shadowOffsetX, float shadowOffsetY)
        : base()
    {
        _shadowOffsetX = shadowOffsetX;
        _shadowOffsetY = shadowOffsetY;

        Init(FFacetType.Quad, element,0); //this will call HandleElementChanged(), which will call SetupSlices();

        _isAlphaDirty = true;

        UpdateLocalVertices();
    }
开发者ID:tanis2000,项目名称:Futile,代码行数:12,代码来源:FShadowSprite.cs

示例13: FractalElement

    public FractalElement(float size,bool root,int maxChainCount,FAtlasElement atlasElement=null,float spriteScaleRatio=1f)
    {
        _size=size;
        _root=root;
        _spriteScaleRatio=spriteScaleRatio;
        _maxChaincount=maxChainCount;
        _atlasElement=atlasElement;
        if (_atlasElement==null) {
            _atlasElement=Futile.atlasManager.GetElementWithName("Futile_White");
        }
        _elements=new List<FractalElement>();

        Build();
    }
开发者ID:tanis2000,项目名称:Futile,代码行数:14,代码来源:Fractals.cs

示例14: CircularParticleSystem

        public CircularParticleSystem(FAtlasElement element, float innerRadius, float lifetime, float speed, float particlesPerSecond, int maxParticleCount)
            : base(maxParticleCount)
        {
            this.element = element;
            this.innerRadius = innerRadius;
            this.lifetime = lifetime;
            this.speed = speed;
            this.timePerParticle = 1.0f / particlesPerSecond;

            timeUntilNextParticle = timePerParticle;

            particleDef = new FParticleDefinition (element);
            particleDef.endColor = Color.white.CloneWithNewAlpha (0.0f);

            ListenForAfterUpdate (HandleUpdate);
        }
开发者ID:tanis2000,项目名称:Futile,代码行数:16,代码来源:CircularParticleSystem.cs

示例15: FSliceSprite

	public FSliceSprite (FAtlasElement element, float width, float height, float insetTop, float insetRight, float insetBottom, float insetLeft) : base()
	{
		_width = width;
		_height = height;
		
		_insetTop = insetTop;
		_insetRight = insetRight;
		_insetBottom = insetBottom;
		_insetLeft = insetLeft;
		
		Init(FFacetType.Quad, element,0); //this will call HandleElementChanged(), which will call SetupSlices();
		
		_isAlphaDirty = true;
		
		UpdateLocalVertices();
	}
开发者ID:blakejia,项目名称:Futile,代码行数:16,代码来源:FSliceSprite.cs


注:本文中的FAtlasElement类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。